
编程语言
defeng2011
这个作者很懒,什么都没留下…
展开
-
STL模板(C++)
一、vecor 1、头文件<vector>。 2、成员函数 (1)创建&&初始化 vector<int> Init(3) ;//创建容器大小为3。 vector<int> Init(3,0) ;//创建容器大小为3且初始化为0; (2)添加 Init.push_back() (3)删除 ...原创 2019-12-21 23:20:40 · 142 阅读 · 0 评论 -
C语言进阶C++
一、C与C++差异 (1)头文件包含不带.h C: #include<stdio.h> C++: #include<vector> (2)命令名空间的概念:使用标准库函数,需要using namespace std 二 STL模板&&iterator ...原创 2019-12-21 23:06:04 · 238 阅读 · 0 评论