标题:请帮忙看看下面代码那里错了
取消只看楼主
停云落月
Rank: 1
等 级:新手上路
帖 子:16
专家分:7
注 册:2010-10-9
 问题点数:0 回复次数:1 
请帮忙看看下面代码那里错了
程序代码:
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
    string s;
    vector<string> text;
    while (cin>>s)
    {
        text.push_back(s);
    }
    for (vector<string>::iterator iter=text.begin();iter!=text.end();++iter)
    {
        cout<<*iter;
    }
    return 0;
}
搜索更多相关主题的帖子: 代码 
2010-10-29 22:07
停云落月
Rank: 1
等 级:新手上路
帖 子:16
专家分:7
注 册:2010-10-9
得分:0 
回复 2楼 m21wo
额 多谢了 下次提问一定给分啦
2010-10-29 23:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-324421-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 2.039831 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved