今天用VC6编程时,出现错误:
error C2533: 'WumpusWorld::WumpusWorld' : constructors not allowed a return type
程序并没有返回值,构造函数嘛,
上网一查,方有一位仁兄和我同样境遇,原来是
头文件中类声明的时候,没有在类结尾加上";"
这个错误提示定位也太风马牛不相及了.
编译错误:constructors not allowed a return type
最新推荐文章于 2020-09-07 21:48:37 发布