我想在每次循环运行时打印以打印文本,但我的程序只在最后一次循环运行时打印它.我的代码:
while (shots>i){ printf ("%s", message); i++; sleep(1); }
最后,我只是在一瞬间获得所有输出.
c printf
c ×1
printf ×1