admin 管理员组

文章数量: 1086866

error C2679: binary ‘<<‘ : no operator defined which takes a right

c++ 报错error C2679: binary ‘<<’ : no operator defined which takes a right-hand operand of type ‘class std::basic_string<char,struct std::char_traits,class std::alloca
tor >’ (or there is no acceptable conversion)

是头文件string.h的错误,应把.h去掉,.h的是标准C的头文件,没有.h的是标准C++的头文件,两种都是头文件。新的C++标准摒弃了.h形式的头文件

本文标签: error C2679 binary <<no operator defined which takes a right