编译错误:constructors not allowed a return type

今天用VC6编程时,出现错误:
error C2533: 'WumpusWorld::WumpusWorld' : constructors not allowed a return type
程序并没有返回值,构造函数嘛,
上网一查,方有一位仁兄和我同样境遇,原来是
头文件中类声明的时候,没有在类结尾加上";"

这个错误提示定位也太风马牛不相及了.

你可能感兴趣的:(编译错误:constructors not allowed a return type)