
STL
li__dawn
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
A+B STL map例题
读入两个小于100的正整数A和B,计算A+B. 需要注意的是:A和B的每一位数字由对应的英文单词给出. Input 测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出. Output 对每个测试用例输出1行,即A+B的值. Sample Input one + two = three four + fi...原创 2019-04-11 21:38:23 · 219 阅读 · 0 评论 -
STL set
Set 是什么 Set 是C++STL 中提供的容器,set 是数学上的集合——具有唯一性,即每个元素只出现一次,而multiset 则是可重集,两者的内部实现是一棵红黑树,它们支持的函数基本相同 Set 的相关操作 头文件 #include 1 声明: 像这样: set<类型>名称; 1 比如: sets; set<vector >s; //vector中提供重载...转载 2019-07-18 10:31:41 · 143 阅读 · 0 评论 -
What Kind of Friends Are You?
Japari Park is a large zoo home to extant species, endangered species, extinct species, cryptids and some legendary creatures. Due to a mysterious substance known as Sandstar, all the animals have bec...原创 2019-04-25 21:19:22 · 247 阅读 · 0 评论