64,682
社区成员
发帖
与我相关
我的任务
分享
1
boost是编译器自带的吗,我的编译错误
fatal error C1083: 无法打开包括文件:“boost/shared.h”: No such file or directory
我去查了查,vc9里的include文件,里面没找到boost头文件,是得自己下吗?
2,这个错误怎么改
map<string,map<string,students>::iterator it;
string s1;
cin>>s1;
it=m1.find(s1);
{
if((it->second).current_amount_>(it->second).max_amount_)//??
}
编译错误:
参见对正在编译的类 模板 实例化“std::pair<_Ty1,_Ty2>”的引用
1> with
1> [
1> _Ty1=const std::string,
1> _Ty2=students
1> ]
error C2228: “.current_amount_”的左边必须有类/结构/联合
error C2228: “.max_amount_”的左边必须有类/结构/联合
map<string,students>::iterator it;
string s1;
cin>>s1;
it=m1.find(s1);
{
if((it->second).current_amount_>(it->second).max_amount_)//??
}
map<string,map<string,students>::iterator it;
map<string,map<string,students> >:iterator it;
是不是少了个>