欢迎光临散文网 会员登陆 & 注册

傻子无聊系列&c++备份:乱窜的小人

2023-07-12 15:19 作者:三无的白象牛蛙汤面  | 我要投稿

#include<bits/stdc++.h>

#include<Windows.h>

using namespace std;

void gotoxy(int x,int y)

{

int xx=0x0b;

HANDLE hOutput;

COORD loc;

loc.X=x;

loc.Y=y;

hOutput=GetStdHandle(STD_OUTPUT_HANDLE);

SetConsoleCursorPosition(hOutput,loc);

}

int main()

{

srand((unsigned)time(NULL));

int a,b,c,d,e,f;

while(1)

{

system("cls");

gotoxy(rand()%110,rand()%30);

printf("人");

Sleep(250);

}

return 0;

}


傻子无聊系列&c++备份:乱窜的小人的评论 (共 条)

分享到微博请遵守国家法律