摘要:
/*Are they equal*/#include<iostream>#include<string>using namespace std;int n;string deal(string s, int & e){ int k = 0; while(s.length() > 0 && s[0] 阅读全文
posted @ 2016-10-16 16:28
Google-boy
阅读(255)
评论(0)
推荐(0)
摘要:
/*C 语言中字符数组一般会采用char str[]来存放,但是显得会比较麻烦,C++在stl中加入了string类型,对字符串常用的功能进行了封装,操作起来比较方便*/ 输出结果如下: hello world 通过迭代器进行访问 /*string的拼接*/ 输出结果:: hello world h 阅读全文
posted @ 2016-10-16 12:24
Google-boy
阅读(187)
评论(0)
推荐(0)
摘要:
/*set意为集合,是一个内部自动排序不含重复元素的容器*/ 输出结果如下: 235 阅读全文
posted @ 2016-10-16 11:50
Google-boy
阅读(237)
评论(0)
推荐(0)
浙公网安备 33010602011771号