
C++
hcq29
29的前端之路
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【C++】setw()函数使用,#include ——using std::setw;
使用时声明: #include <iostream> using namespace std; #include <iomanip> using std::setw; cout<<'s'<<setw(8)<<'a'<<endl; 则在屏幕显示 s a //s与a之间有7个空格, 上代码: #...转载 2019-02-05 09:25:37 · 1378 阅读 · 0 评论 -
【C++】sort()函数使用,#include <algorithm>
使用声明: #include<iostream> #include<algorithm> using namespace std; #include <algorithm> algorithm意为"算法",是C++的标准模版库(STL)中最重要的头文件之一,提供了大量基于迭代器的非成员模版函数。 相关文章可参考:https://blog.csdn....原创 2019-02-05 10:04:01 · 893 阅读 · 0 评论 -
【C++】 STL的list用法总结
目录 1、list的构造函数 2、begin()和end() 3、push_back()和push_front() 4、empty() 5、resize() 6、clear() 7、front()和back() 8、pop_back()和pop_front() 9、assign() 10、swap() 11、reverse() 12、merge() 13、insert()...转载 2019-02-09 13:23:29 · 208 阅读 · 0 评论