写了这个
// chapter01.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
int a;
int b;
int sum;
a=1;
b=1;
sum=a+b;
printf("sum is %d\n",sum);
return 0;
}
然后还写了
// chapter01.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
int a;
int b;
int sum;
a=1;
b=2;
sum=a+b;
printf("sum is %d\n",sum);
return 0;
}
这两个粘到vc上是完全一样的但第一个错误求解
是不是上面因为空格的问题导致了错误? 那么在c中语言之间的间隔多少是不是比较重要?