随机小球发生器
作者:互联网
#include <easyx.h> #include <conio.h> int main() { initgraph(640,480); while(true) { int x = rand()%631+5; int y = rand()%471+5; solidcircle(x,y,5); Sleep(500); cleardevice(); } getch(); closegraph(); return 0; }
标签:getch,rand,cleardevice,return,int,小球,发生器,随机,include 来源: https://www.cnblogs.com/lhb666aboluo/p/13619029.html