把getche();加在return 0;的前面,否则运行只是一闪而过;
#include <stdio.h>
int main (void)
{
int num;
num = 1;
printf ("I am a simple ");
printf ("computer.\n");
printf ("My favorite number is %d because it is first.\n", num);
getche();
return 0;
}
这样就可以了,我运行过了,能得到你想要的结果!
#include <stdio.h>
int main (void)
{
int num;
num = 1;
printf ("I am a simple ");
printf ("computer.\n");
printf ("My favorite number is %d because it is first.\n", num);
getche();
return 0;
}
这样就可以了,我运行过了,能得到你想要的结果!