(c语言)麻烦高手看一下程序错误在哪

来源:百度知道 编辑:UC知道 时间:2024/05/05 22:43:06
/***********book.h头文件*****************/
#include "stdio.h"
#include "stdlib.h"
#include "conio.h"
#include "string.h"
#define LEN1 sizeof(struct type)
#define LEN2 sizeof(struct book)
#define LEN3 sizeof(struct lend)

typedef struct book
{
long bookid;
char name[50];
char tname[2];
struct book *self;
struct lend *lhead;
struct book *next;
int typenum;
}BOOK;

typedef struct type
{
char tname[2];
struct book *bhead;
}TYPE;

typedef struct lend
{
long lendid;
char lname[50];
struct book *bself;
struct lend *next;
}LEND;

extern void addbookrecord();
extern void search();
extern void savedata();
extern void loaddata();

/*************start.c****************/
#include "book.h"
#include "add.c"
#include "searc

你的程序是没有错的
需要找错 得到
#include "book.h"
#include "add.c"
#include "search.c"
#include "save.c"
#include "load.c"里面去找 ... 一个个编译过去...

d:\prog\start.c(6) : error C2143: syntax error : missing ';' before 'PCH creation point'

从编译出错提示看很简单
start.c 第6行,语法错误:'PCH creation point'前 缺少分号
其它类推

就是全角和半角。 你是不是开了输入法,输入了中文的分号?

哎!输入法不对!!