
STL
艺术人生666
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
STL--Lesson001-01-STL概述
STL泛型程序设计 列表内容程序尽可能通用 将算法从数据结构中抽象出来,成为通用的 STL是什么(做了什么)泛型程序思想的体现 - 包含常用的数据结构 - 包含常用的基本算法 - 提供了一套可扩展框架STL六大组件 - 容器(Container) 基本数据结构 vector(向量) deque(双端队列) list(列表) set(集合) mu原创 2017-03-18 11:44:22 · 317 阅读 · 0 评论 -
STL-lesson001_1_模板实现Array类
/*MyString.h*/#ifndef _MYSTRING_H_ #define _MYSTRING_H_ #define _CRT_SECURE_NO_WARNINGS #include <cstring> #include <limits> #include <string> namespace PoEdu { class CMyString { public:原创 2017-12-19 00:01:00 · 250 阅读 · 0 评论 -
STL-Lesson001_2_实现MyStack类
MyArray/*MyArray.h*/#ifndef _MYARRAY_H_ #define _MYARRAY_H_ #include <limits>namespace PoEdu { template<typename T> class MyArray { public: // Member functions MyArray()原创 2017-12-19 00:07:37 · 479 阅读 · 0 评论 -
STL-Lesson002-MyList
MyList/*MyList.h*/#ifndef _MYLIST_H_ #define _MYLIST_H_ namespace PoEdu { //template<typename T> template<typename T> class MyList { public: struct node {原创 2017-12-19 00:18:40 · 230 阅读 · 0 评论 -
STL-Lesson003_学生管理系统
学生管理系统#define _CRT_SECURE_NO_WARNINGS#include <iostream> #include <fstream> #include <list> #include <functional> #include <array> #include <ctime> #include <Windows.h>#define MAX_STU 500000 // 学生原创 2017-12-19 00:27:25 · 576 阅读 · 0 评论 -
STL-Lesson004_001
#ifndef _MYALGORITHM_H_ #define _MYALGORITHM_H_ #include <iterator> #include <tuple>namespace PoEdu { // all_of // Test condition on all elements in range (function template ) template<type原创 2017-12-19 00:30:33 · 294 阅读 · 0 评论 -
STL-Lesson004_002
#ifndef _MYALGORITHM_H_ #define _MYALGORITHM_H_ #include <iterator> #include <random> #include <type_traits> #include <tuple> namespace PoEdu { // all_of // Test condition on all elements in ra原创 2017-12-19 00:32:26 · 253 阅读 · 0 评论 -
STL_Lesson005_001
#include <iostream> #include "my_vector.h" #include "my_list.h" #include "my_deque.h" #include "my_stack.h" #include "my_queue.h" int main() { int len = 0; std::cout << "test myvector begin.....原创 2017-12-19 00:36:39 · 196 阅读 · 0 评论 -
STL_Lesson005_002
容器中的与算法中的重名函数array: fill Fill array with value (public member function ) fill Fill range with value (function template ) swap Swap content (public member function ) swap Exch原创 2017-12-19 00:39:10 · 219 阅读 · 0 评论