delay(3000);// 延迟3秒 // ... 其他代码 ... return0; } 在Unix/Linux系统中,可以使用usleep函数实现延迟,该函数定义在unistd.h头文件中。usleep函数的参数是微秒数,因此如果要延迟3秒,需要传入3000000微秒。 #include<unistd.h> voidclearScreen(){ system("clear"); } voiddelay(intmicroseconds){ uslee...