关于求两数之和和平均数的问题.
#include<stdio.h>#include<math.h>
#define a 50, b 100
int main
{
float sum=0, avg=0;
sum=a+b;
avg=sum/2;
printf("sun is%d\n,sum");
printf("avg is%d\n,avg");
}
error C2239: unexpected token '{' following declaration of 'main' .我翻译过来是意外标记 {.我就不懂了 .