求解
c4droid吧
全部回复
仅看楼主
level 6
为啥清屏用不了,求大佬解释。
2017年10月10日 04点10分 1
level 6
clear
2017年10月10日 06点10分 2
level 9
好像还有头文件
2017年10月10日 07点10分 3
level 9
这样打printf("\033[2J");可清屏
2017年10月10日 08点10分 4
level 9
GCC好像不支持sleep函数。
2017年10月10日 08点10分 5
说错了是支持的,需要加#include<unistd.h>以秒为单位。
2017年10月10日 08点10分
level 6
sleep还是用不了
2017年10月10日 12点10分 6
百度头文件。。。。[黑线]
2017年10月10日 13点10分
level 6
大佬,有其他的方法吗?
2017年10月10日 12点10分 7
level 9
我试了可以用啊。难道是版本或编译器或插件问题。
2017年10月10日 14点10分 8
大佬有新版汉化吗?
2017年10月10日 23点10分
level 9
再不行用下面函数仿延时。毫秒级
#include<time.h>
wait(clock_t t)
{
clock_t oldt;
oldt=clock();
oldt+=t*CLOCKS_PER_SEC/1000;
while(clock()<oldt);
}
2017年10月10日 14点10分 9
level 6
us级的延时usleep
#include<unistd.h>
usleep(1000) //1ms
2017年10月11日 03点10分 10
level 6
我想问这样水到底有没有经验的,是不是能够升级快点[滑稽],喔水到4级了
2017年10月11日 03点10分 11
1