typedef map valuemap
定义了一个类:
Class XXX{
protected:
typedef map<string, int, ics_less> valuemap;
valuemap value_table;
在VC6.0下编译后出了问题,
: error C2143: syntax error : missing ';' before '<'
: error C2059: syntax error : '<'
: error C2238: unexpected token(s) preceding ';'
: error C2146: syntax error : missing ';' before identifier 'value_table'
: error C2501: 'valuemap' : missing storage-class or type specifiers
: error C2501: 'value_table' : missing storage-class or type specifiers
我现在一点头绪都没有,不知道到底哪里错了,对map也不是很熟悉 以前都没用过,请大家帮帮忙看看,不胜感激!
给分功能总是说我没有权利给那么多分数,可能是我不常来没有多少积分吧,不管怎么说,还是希望大家可以帮帮忙的,谢谢!