• 这是一个关于数据结构链表结点的相关问题
  • 其它
    1.00元

#include<iostream>
#include<conio.h>
#include<string>
#include<iostream>
using namespace std;

typedef struct
{
string name;
float price;
}Book;
typedef  Book ElemType
typedef struct  LNode
{
ElemType Elem;
LNode *Next;
}*LNod,List;
int main()
{


cout<<a[2];



getch();


return 0;
}

我定义了一个链表的结构,报错如下

--------------------Configuration: 线性表 - Win32 Debug--------------------
Compiling...
线性表.cpp
E:\数据结构\线性表.cpp(15) : error C2143: syntax error : missing ';' before ''
E:\数据结构\线性表.cpp(15) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

线性表.exe - 2 error(s), 0 warning(s)
为什么呢

  • vicky    2020-01-02 16:58:01
  • 阅读 697    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信