伪黑客专用——数字雨
  • 板块灌水区
  • 楼主DongYuke
  • 当前回复15
  • 已保存回复16
  • 发布时间2024/10/19 18:45
  • 上次更新2024/10/19 20:43:16
查看原帖
伪黑客专用——数字雨
1508667
DongYuke楼主2024/10/19 18:45
#include <stdlib.h>
#include <time.h>
#include <Windows.h>
int main() 
{ 
	srand((unsigned)time(NULL)); 
	system("color 02"); 
	while (1)
	{ 
		for(int k = 0; k <= 99; k++) 
		{
			if(rand() % 5 >= 3)
			{
				printf("%-*d", rand() % 3 + 2, k % 2);
			} 
		}
		printf("\n"); 
		Sleep(50);
	}
	return 0;
}
2024/10/19 18:45
加载中...