怎么结束这个输入呀!关于istream_iterator

ssbull 2003-10-15 08:59:45
istream_iterator<string> input(cin),eos;
vector<string> text;
copy(input,eos,back_inserter(text));
vector<string>::iterator iter;
for(iter=text.begin();iter!=text.end();iter++)
cout<<*iter<<" ";
我的上述这段代码,如何结束我从标准输入中的输入?
...全文
57 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
rainbow1216 2003-10-15
  • 打赏
  • 举报
回复
按两次ctrl+z
ssbull 2003-10-15
  • 打赏
  • 举报
回复
按了ctrl+z也没作用呀。按了以后并没有把我的输入打印出来
darcymei 2003-10-15
  • 打赏
  • 举报
回复
ctrl+z

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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