- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 C++的STL值优先队列
#include #include #include using namespace std;struct Mystuct{ string name; int age;};struct stuless{ bool operator()(const Mystuct &s1, const Mystuct &s2) //重载() { return s1.ag
2017-09-27 20:41:01 261
原创 C++的STL之stack
#include #include using namespace std;int main1(void) //十进制转换二进制{ stackMystack; int num; cin >> num; while (num) { int data = num % 2; Mystack.push(data);
2017-09-27 15:14:23 252
原创 C++的STL之容器<2>
3、list#include #include #include using namespace std;int main1(void) //list 的输出{ listMylist; Mylist.push_back(1); Mylist.push_back(2); Mylist.push_back(3); Mylist.push_back(4); //
2017-09-26 22:26:45 212
原创 C++的STL之容器<1>
容器用来存储数据的,数据可以是用户自定义类型(对象),也可以是预定义类型。1、multiset#include #include #include using namespace std;int main(void){ multisetMyset; Myset.insert(10); Myset.insert(10); Myset.insert(20); My
2017-09-26 22:19:04 252
原创 C++的STL之仿函数简单介绍
#include #include #include //算法 #include //仿函数using namespace std;bool less3(int x){ return x < 30;}int main(void){ vector Myvecyor; Myvecyor.push_back(10); Myvecyor.push_back(
2017-09-26 22:15:26 531
原创 C++的STL之的iterator简单介绍
迭代器(iterator)是一中检查容器内元素并遍历元素的数据类型#include #include #include //算法using namespace std;int main(void){ vector Myvecyor; Myvecyor.push_back(10); Myvecyor.push_back(20); Myvecyor.push_
2017-09-26 22:05:56 292
一个可用的MinGW(gcc version 8.1.0 (x86-64-win32-seh-rev0, Built by M)
2023-08-06
VS code配置C++环境,上传我自己的MinGW编译环境,直接解压即可
2023-08-04
python爬取豆瓣电影top250
2020-09-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人