令牌之前应为非限定 ID ')'
expected unqualified-id before ')' token
#ifndef MAP_H_INCLUDED
#define MAP_H_INCLUDED
class Map()
{
public:
Map::Map();
Map::~Map();
unsigned int width,height;
Tile** mapTiles;
};
#endif
我只是想声明一个类,几分钟前它工作正常,现在它只是无法编译
这应该只是Map()
和~Map()
,而不是Map::Map()
和Map::~Map()
。
哦,应该是class Map
而不是class Map()
.
相关文章:
- C++:"("令牌"之前有预期的非限定 id 指向类中成员函数的指针
- 错误:令牌 { '{' 之前应存在非限定 ID
- 令牌 C++ 错误之前'['非限定 ID
- 修复令牌错误之前';'预期的非限定 ID
- C 错误:令牌之前'['预期为非限定 id
- "["令牌和 + 之前应为非限定 ID
- 屏幕显示脚本中'.'令牌之前的预期非限定 id
- “OR”令牌之前的预期非限定 ID
- 声明中的限定 ID 在"="令牌/对象计数器变量之前
- 需要调试"在')'令牌之前预期的非限定id",第一次使用c ++的用户
- 在"." 令牌之前应为非限定 ID(C++ 错误)
- 在“.”令牌之前应为非限定 ID
- 令牌之前应'{'非限定 ID
- 函数概率:令牌之前'['预期的非限定 id
- 预期在令牌之前的未合格ID
- 错误:预期的非限定 ID befo 重新'{'令牌
- Arduino 错误在令牌之前预期为非限定 id '/'
- 错误:在 Arduino 中'{'令牌之前预期未限定 ID
- 令牌之前')'预期的非限定 id?
- 令牌之前应为非限定 ID ')'