错误 1 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\users\john\documents\visual studio 2005\projects\test\test\test.cpp 15
出现这样的错误,没加头文件#include <string>或者是用的#include <string.h>
解决方法:改成#include <string>就好了