啊哈磊_编程从这里起步
标题:
神奇代码
[打印本页]
作者:
The Death
时间:
2020-3-19 12:37
标题:
神奇代码
本帖最后由 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;
}
欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/)
Powered by Discuz! X3.2