我想在 C++ 中创建一个堆栈列表,但编译器给了我一些错误消息:
#include <list>
#include <stack>
class cName
{
[...]
list<stack> list_stack;
[...]
}
错误:
error C2143: syntax error : missing ';' before '<'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2238: unexpected token(s) preceding ';'