这个代码超酷
2025-06-29 11:32:51
发布于:浙江
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
int a[12] = {
0x48,
0x65,
0x6c,
0x6c,
0x6f,
0x20,
0x77,
0x6f,
0x72,
0x6c,
0x64,
0x21
};
int main () {
int t = 0;
string s;
for (int i = 0; i < 12; i++) {
t = 0;
while (true) {
s[i] = char(++t);
for (int j = 0; j < 12; j++) {
cout << s[j];
}
Sleep(5);
cout << '\n';
if (t == a[i]) break;
// system("cls"); 指令清屏会闪烁(可取消注释)
}
}
}
全部评论 2
怎么有出错
2025-07-02 来自 上海
06666
2025-07-02 来自 广东
0
有帮助,赞一个