摘要:
STL:C++标准容器库 :vector #include <iostream> #include<string> #include<vector> #include<algorithm> using namespace std; class Student { public: Student() 阅读全文
posted @ 2020-04-26 15:38
是小邹啊
阅读(158)
评论(0)
推荐(0)
|
摘要:
STL:C++标准容器库 :vector #include <iostream> #include<string> #include<vector> #include<algorithm> using namespace std; class Student { public: Student() 阅读全文
posted @ 2020-04-26 15:38
是小邹啊
阅读(158)
评论(0)
推荐(0)
摘要:
模板技术:本质:把类型作参数 模板函数: template <typename T1,typename T2> //还能用class代替typename T1 add(T1 num1,T2 num2) //这是一个模板函数 { cout<<"T1 add(T1 num1,T2 num2)"<<end 阅读全文
posted @ 2020-04-26 10:52
是小邹啊
阅读(199)
评论(0)
推荐(0)
|