淡水求咸

博客园已经停止更新,请移步 http://lovecjh.com/

导航

2012年3月23日

while(cin>>s)退出问题

摘要: 今天在CSDN看到一个帖子,让我想到的while(cin>>s)退出问题。程序如下:#include <iostream>#include <string>#include <vector>#include <algorithm>#include <functional>using namespace std;int main(){ vector<string> str; string s; while(cin>>s) str.push_back(s); for(vector<string&g 阅读全文

posted @ 2012-03-23 18:32 深圳彦祖 阅读(3326) 评论(0) 推荐(0) 编辑