谁能给我翻译一下
2026-08-12 16:32:25
发布于:浙江
#include<bits/stdc++.h>
#include<Windows.h>
using namespace std;
char c[50]={'H','e','l','l','o',',','w','o','r','l','d','!','\n','B','y','/','\n','C','a','r','r','o','t'};
int main(){
HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO cursorInfo;
GetConsoleCursorInfo(console, &cursorInfo);
cursorInfo.bVisible = false;
SetConsoleCursorInfo(console, &cursorInfo);
Sleep(1000);
for(int i=0;i<23;i++){
for(char j=125;j>=c[i];j--){
for(int k=0;k<i;k++){
cout<<c[k];
}
cout<<j<<'\n';
Sleep(5);
system("cls");
}
}
cout<<"Hello,world!\nBy/\nCarrot";
}
这里空空如也

















有帮助,赞一个