注册 登录
编程论坛 C++教室

已知

ehszt 发布于 2018-01-06 17:37, 1321 次点击
#include <iostream>
#include <string>
#include <iterator>  //书上的原例程序没有这个头文件
#include <algorithm>
using namespace std;
int main()
{
    string str="We are here!";
    copy(str.begin(),str.end(),ostream_iterator <char> (cout));
   
}
只有本站会员才能查看附件,请 登录


[此贴子已经被作者于2018-1-7 10:44编辑过]

1 回复
#2
rjsp2018-01-06 21:22
没问题呀,我这儿可以编译
1