首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

模版Set的有关问题 请大家帮下忙多谢了

2012-02-07 
模版Set的问题 请大家帮下忙谢谢了classCCountryclassCRS{boolOpenRS(constset CCountry ::iterator&Co

模版Set的问题 请大家帮下忙谢谢了
class   CCountry;

class   CRS
{
bool   OpenRS(const   set <CCountry> ::iterator   &CountryIt,   HMODULE   &hModule);
//定义函数
}

class   CCountry
{
}


错误提示:

d:\program   files\microsoft   visual   studio\vc98\include\xtree(28)   :   error   C2079:   '_Value '   uses   undefined   class   'CCountry '
                d:\program   files\microsoft   visual   studio\vc98\include\set(33)   :   see   reference   to   class   template   instantiation   'std::_Tree <class   CCountry,class   CCountry,struct   std::set <class   CCountry,struct   std::less <class   CCountry> ,class   std::allocator <clas
s   CCountry>   > ::_Kfn,struct   std::less <class   CCountry> ,class   std::allocator <class   CCountry>   > '   being   compiled


这是什么问题呢?前辈们帮下小弟     万分感谢

[解决办法]
把class CCountry定义体提到CRS前面。

热点排行