新手编程遇到的问题
按照c primer plus上的案例,在dev c++ 上编程,#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");
getchar();
return 0;
}
我不小心打错第九行末尾it is first.\n",num);为什么会出现这种结果:
I am a simple computer.
My favorite number is 698282032 because it is first.
,num