摘要: 水题,绝对水题,不过作为一个学C的人面对C++的这些东西还是忍不住发一下,这里用到的我不会的以后会发到博客上,由于题比较水,我就先不发题目了 代码如下:(朋友写的,已AC,好像比网上的简单啊) 1 #include <cstdio> 2 #include <map> 3 #include <stri 阅读全文
posted @ 2016-02-03 11:42 Alan2 阅读(196) 评论(0) 推荐(0) 编辑
摘要: stringstream的基本用法 stringstream是字符串流。它将流与存储在内存中的string对象绑定起来。 在多种数据类型之间实现自动格式化。 1 stringstream对象的使用 #include<sstream> #include<iostream> using namespac 阅读全文
posted @ 2016-02-03 11:28 Alan2 阅读(283) 评论(0) 推荐(1) 编辑