expected expression before ‘{’ tokenがでてきます.
Posted: 2014年6月03日(火) 00:54
#include<stdio.h>
#define n 10;
typedef struct list
{
int a;
int b;
struct list *next;
}s;
int main(void)
{
s c[0]={0,0,NULL};
return 0;
}
これをコンパイルすると,expected expression before ‘{’ tokenがs c[0]={0,0,NULL};の行にでてきます.どうしたらいいでしょうか.
#define n 10;
typedef struct list
{
int a;
int b;
struct list *next;
}s;
int main(void)
{
s c[0]={0,0,NULL};
return 0;
}
これをコンパイルすると,expected expression before ‘{’ tokenがs c[0]={0,0,NULL};の行にでてきます.どうしたらいいでしょうか.