visual studio下
#includefor (int i = 0; i < 10; ++i){ system("cls");//清屏 printf("num: %d\n", i);}
Linux下
for (int i = 0; i < 10; ++i){ printf("\033[1A\033[K"); printf("num: %d\n", i);}
本文共 281 字,大约阅读时间需要 1 分钟。
visual studio下
#includefor (int i = 0; i < 10; ++i){ system("cls");//清屏 printf("num: %d\n", i);}
Linux下
for (int i = 0; i < 10; ++i){ printf("\033[1A\033[K"); printf("num: %d\n", i);}
转载于:https://www.cnblogs.com/haiyang21/p/9777020.html