可以参考下面的代码:include <stdio.h> include <conio.h> include <windows.h> main( ){ int p;while( ! _kbhit() ) { // run progs _cputs( "Please hit me ! \n" );Sleep(500);} return 0;}
可以参考下面的代码:include <stdio.h> include <conio.h> include <windows.h> main( ){ int p;while( ! _kbhit() ) { // run progs _cputs( "Please hit me ! \n" );Sleep(500);} return 0;}