c++错误-1>d:\study c\study\shunxubiaocpp\danlianbiao\danlianbiao\danlianbiao\node.h(9): error C3646: “data”: 未知重写说明符 1>d:\study c\study\shunxubiaocpp\danlianbiao\danlianbiao\danlianbiao\node.h(9): error

 

在vs2017环境下,出现这样的错误,最终找到解决方案。

总结一下:

  此处错误的出现是因为加入在A.h的头文件中包含了B.h的头文件,在B.h的头文件中包含了A.h的头文件,这样就会报错。互相包含引起的错误。此时需在其中一个头文件定义中删除一条头文件,就能正确编译。

posted @ 2017-12-06 21:55  boht  阅读(491)  评论(0编辑  收藏  举报