这段c语言哪里错了,请指点
#include<stdio.h>struct AAA{
int a[10];
int n;
};
struct AAA x;
void main(void)
{
int i;
int b[6]={20,35,46,18,24,52};
x,n=6;
for(i=0;i<x;i++)x,a[i]=b[i];
x,a[x,n]=37;x.n++;
for(i=0;i<x.n;i++)printf("%d",x.a[i]);
printf("\n");
}
报错:
--------------------Configuration: Func1 - Win32 Debug--------------------
Compiling...
Func1.c
C:\Documents and Settings\Administrator\Func1.c(11) : error C2065: 'n' : undeclared identifier
C:\Documents and Settings\Administrator\Func1.c(12) : error C2088: '<' : illegal for struct
C:\Documents and Settings\Administrator\Func1.c(12) : error C2065: 'a' : undeclared identifier
C:\Documents and Settings\Administrator\Func1.c(12) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\Administrator\Func1.c(12) : error C2106: '=' : left operand must be l-value
C:\Documents and Settings\Administrator\Func1.c(13) : error C2109: subscript requires array or pointer type
C:\Documents and Settings\Administrator\Func1.c(13) : error C2106: '=' : left operand must be l-value
执行 cl.exe 时出错.
Func1.exe - 1 error(s), 0 warning(s)
请高手指点