f:\in u disk\paper\符号智能\程序\kmeans.cpp(529) : error C2784: 'class std::reverse_iterator <_RI,_Ty,_Rt,_Pt,_D> __cdecl std::operator +(_D,const class std::reverse_iterator <_RI,_Ty,_Rt,_Pt,_D> &) ' : could not deduce template argument for ' ' from 'c
lass std::basic_string <char,struct std::char_traits <char> ,class std::allocator <char> > '
f:\in u disk\paper\符号智能\程序\kmeans.cpp(529) : error C2676: binary '+ ' : 'class std::basic_string <char,struct std::char_traits <char> ,class std::allocator <char> > ' does not define this operator or a conversion to a type acceptable to the predefin
ed operator
f:\in u disk\paper\符号智能\程序\kmeans.cpp(537) : error C2679: binary ' < < ' : no operator defined which takes a right-hand operand of type 'class std::basic_string <char,struct std::char_traits <char> ,class std::allocator <char> > ' (or there is no acce
lass std::basic_string <char,struct std::char_traits <char> ,class std::allocator <char> > '
f:\in u disk\paper\符号智能\程序\kmeans.cpp(529) : error C2676: binary '+ ' : 'class std::basic_string <char,struct std::char_traits <char> ,class std::allocator <char> > ' does not define this operator or a conversion to a type acceptable to the predefin
ed operator
f:\in u disk\paper\符号智能\程序\kmeans.cpp(537) : error C2679: binary ' < < ' : no operator defined which takes a right-hand operand of type 'class std::basic_string <char,struct std::char_traits <char> ,class std::allocator <char> > ' (or there is no acce
ptable conversion)
*************************************
|
| ||
|
|
KMeans程序编译错误解析
本文解决了一个关于KMeans程序中的编译错误问题,包括std::reverse_iterator模板参数推导失败、std::basic_string类的+操作符重载缺失及<<操作符重载未定义等问题,并给出了相应的解决建议。


被折叠的 条评论
为什么被折叠?



