#include <stdio.h>
#include <windows.h>
#include <time.h>
void wait_ms ( int ms )
{
clock_t endwait;
endwait = clock () + ms;
while (clock() < endwait) {};
}
void disp(unsigned char c){
printf("%c %d\n",c,c);
}
int main()
{
printf("Start....\n");
wait_ms(1);
printf("End\n");
disp('A');
return 0;
}
两题解答在同一程序里。