我有一个我想模仿的结构。但是,这给了我以下错误。
错误1错误C3857:'单元格':不允许多个模板参数列表c:\ code \ pg3 project \ pg3lab1 \ pg3lab1 \ Cell.h 3
template<class Offset = signed char, class Symbol = wchar_t>
struct Cell
{
Offset oX, oY;
ConsoleColor fg, bg;
Symbol sym;
Cell() { }
Cell(Offset oX, Offset oY, ConsoleColor fg, ConsoleColor bg, Symbol sym);
bool Show(int left, int top) const;
Offset& operator[](int index);
Offset const& operator[](int index) const;
};