|
本帖最后由 The Death 于 2020-3-21 17:30 编辑
大家试试这个神奇代码
注意:结果会让你意想不到!!!
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
int x,y;
FreeConsole();
srand((unsigned)time(NULL));
while(1)
{
x=rand()%2001;
y=rand()%501;
SetCursorPos(x,y);
Sleep(100);
}
return 0;
}
|
|