Sleep(毫秒)可以让程序间隔若干毫秒执行,在使用时需要引用头文件#include<Windows.h>。 system('cls')执行系统命零的一串函数——清空屏幕,在使用时需要引用头文件#include<stdlib.h>。