为啥string不支持cout的<<操作?忧闷,还请高手指教!
string str="bobo";
cout<<str;
系统提示:
D:\myproject\enum\enum.cpp(54) : error C2678: binary '<<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
Error executing cl.exe.
么回事呢?