#include<iostream>
#include<conio.h>
#include<string.h>
#define OK 1
#define MAXSIZE 100
using namespace std;
typedef int Status;
typedef struct
{
char name[5];
float price;
}Book;
typedef Book ElemType;
typedef struct LNode
{
ElemType data;
struct LNode *next;
}LNode,*LinkList;
Status InitList(LNode *L)
{
L=new LNode;
if(!L)
exit(-1);
else
return OK;
}
int main()
{
getch();
return 0;
}
这是我写的全部代码
报错如下
--------------------Configuration: 线性表 - Win32 Debug--------------------
Compiling...
线性表.cpp
E:\数据结构\线性表.cpp(27) : error C2018: unknown character '0xa3'
E:\数据结构\线性表.cpp(27) : error C2018: unknown character '0xa9'
E:\数据结构\线性表.cpp(28) : error C2146: syntax error : missing ')' before identifier 'exit'
Error executing cl.exe.
线性表.exe - 3 error(s), 0 warning(s)
为什么呢?