延遲時間
延遲一秒
寫法一:
寫法一:
Sleep(1000);寫法二:
for (int delay=0; delay<=10000; delay++)寫法三:
time_t t1 = time(NULL), t2; do { t2 = time(NULL); } while((t2-t1)<1;