C++ 没有与这些操作数匹配的“<<”的运算符

xiaotiao00123 2012-03-24 03:51:32
如题,,,这是什么意思
#include <iostream>
#include <conio.h>

using std::string;
using std::cin;
using std::cout;
using std::endl;



void main() {
string s = "qwe";
string s1(s);
//string s2("asd");
//string s3(2,'A');
cout<< s << s1 << endl;

}
...全文
1992 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaotiao00123 2012-03-24
  • 打赏
  • 举报
回复
解决了
xiaotiao00123 2012-03-24
  • 打赏
  • 举报
回复
已经解决了,忘记加
#include <string>了

33,311

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧