我有以下书籍记录程序
#include <stdio.h>
#include <string.h>
#define SIZE 7
struct books{
char name[100],author[100];
int year,copies;
};
struct books book1[SIZE],book2[SIZE],book3[SIZE],*list;
void union(struct books *,struct books *,struct books *,int);
main()
{
//code here
}
void union(struct books *list1,struct books *list2,struct books *list3,int n1,int n2)
{
//code here
}
我在函数声明以及定义中遇到错误:
error: expected ‘{’ before ‘(’ token
error: two or more data types in declaration specifiers
这里有什么问题?