开发者社区> 问答> 正文

定义链表节点出现问题了,不写不知道,一写吓一跳。:报错

代码如下:

template<typename _type>
typedef struct _node 
{
	_type   m_Type;
	_node   *m_pNext;
}Node, *LPNode;

在vs2010下提示如下错误:

1>f:\code\minilist\minilist\minilist.cpp(7): error C2823: a typedef template is illegal

1>f:\code\minilist\minilist\minilist.cpp(11): error C2988: unrecognizable template declaration/definition

1>f:\code\minilist\minilist\minilist.cpp(11): error C2059: syntax error : '<end Parse>'

//==============================
求指导。

展开
收起
kun坤 2020-06-14 09:37:29 568 0
0 条回答
写回答
取消 提交回答
问答分类:
C++
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载