#include<iostream>
using namespace std;
struct typedef LNode
{
int data;
LNode *Next;
}*List;
int main()
{
return 0;
}
这是我写的代码,我就是想写个链表结点结构体
报错如下:
--------------------Configuration: 123 - Win32 Debug--------------------
Compiling...
123.cpp
F:\C语言程序\123.cpp(4) : error C2239: unexpected token '{' following declaration of 'LNode'
F:\C语言程序\123.cpp(8) : error C2501: 'List' : missing storage-class or type specifiers
Error executing cl.exe.
123.exe - 2 error(s), 0 warning(s)
求解