读书人

调试的一个异常

发布时间: 2012-03-06 20:47:55 作者: rapoo

调试的一个错误
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 acceptable convers

这个错误什么意思,怎么解决?

[解决办法]
你是#include <iostream.h> 了?
用#include <iostream>
#include <string>
using namespace std;
[解决办法]
#include <isotream.h> 是老一点的用法
#include <isotream>
using namespace std;
是现在的用法,一般情况下两者没有什么区别,这根据编译器的不同而有区别。

读书人网 >C++

热点推荐