(实质是unsigned long, 即无符号长整型), 它的作用是接受一个以毫秒为单位的参数,表示程序暂停的时间。...,接收一个整数,作为倒计时的秒数
{
while (n >= 0)
{
printf("%-2d\r", n);
fflush(stdout); //使用回车打印后休眠,要手动清空字符缓冲区...函数参数
该函数一共有1个参数,如下:
unsigned int sleep(unsigned int seconds);
️unsigned int seconds
函数参数的类型是...unsigned int(即无符号整型), 它的作用是接受一个以秒为单位的参数,表示程序暂停的时间。...,接收一个整数,作为倒计时的秒数
{
while (n >= 0)
{
printf("%-2d\r", n);
fflush(stdout); //使用回车打印后休眠,要手动清空字符缓冲区