return 0;的报错
可能这个问题很白痴,可我真的不懂诶。
这个程序:
# include <stdio.h>
# include <stdlib.h>
void main ()
{
int num;
scanf("%d",&num);
char str[25];
itoa(num, str, 10);
printf("The number 'num' is %d and the string 'str' is %s. /n" , num, str);
}
如果没有加上return 0;就是对的,加上之后VC6就报错了,这是为什么啊?