2015年8月4日
摘要: 有时候编程需要处理一行字符串,包括空格连接起来的一行。直接用cin的话读到空格就会停止。实用的方法是使用getline函数配个stringstream流操作,简易代码如下。#include #include #include using namespace std;int main(){ strin... 阅读全文
posted @ 2015-08-04 22:50 ″ Jerry。 阅读(449) 评论(0) 推荐(0)