vs2010中这个for循环哪里出错了呀,为什么老是报错,求大神指教
代码如下:
#include<stdio.h>
#include<string.h>
#include<conio.h>
#include<stdlib.h>
#define N
typedef struct ss
{ char num[10];
int s;
} STU;
fun(STU a[],STU *s)
{
}
void main()
{
FILE *wf;
STU a[N]={{"A01",81},{"A02",89},{"A03",66},{"A04",87},{"A05",77},{"A06",90},{"A07",79},{"A08",61},{"A09",80},{"A10",71}},m;
int i;
system("CLS");
printf("*****The original data*****\n");
for (i=0;i<N;i++)
printf("No=%s Mark=%d\n",a[i].num,a[i].s);
fun(a,&m);
printf("****THE RESULT****\n");
printf("The lowest :%s,%d\n",m.num,m.s);
/*****************/
wf=fopen("out.dat","w");
fprintf(wf,"%s,%d",m.num,m.s);
fclose(wf);
/*****************/}
错误信息如下:
1>c:\users\asus\documents\visual studio 2010\projects\prog1.c\prog1.c\prog1.c(21): error C2059: 语法错误:“;”
1>c:\users\asus\documents\visual studio 2010\projects\prog1.c\prog1.c\prog1.c(21): error C2143: 语法错误 : 缺少“;”(在“)”的前面)
感谢大神指点!