一、何为泛型编程?
所谓泛型编程,就是使用模板 template为主要工具来编写程序
二、我们的目标
level0:使用c++标准库
level1:认识c++标准库(胸中自有丘壑)
level2:良好使用c++标准库
level3:扩充c++标准库
三、标准库与标准模板库
标准库(stand library)>标准模板库(stand template library)
1.c++标准库的header files不带副档名(.h)例如 #include<vector>
2.新式c header files 不带副档名.h,例如 #include<cstdio>
3.旧式 c header files (带有副档名.h)仍然可用,例如 #include<stdio.h>
4.新式headers内的组件对于 namespace “std”(standard)
using namespace std;
using std::cout;
5.旧式headers内的组件不封装于namespace “std”