- 博客(1)
- 资源 (8)
- 收藏
- 关注
转载 C++类模板详解
#include using namespace std;template //模板声明,其中T为类型参数T max(T a,T b,T c) //定义一个通用函数,用T作虚拟的类型名{ if(b>a) a=b; if(c>a) a=c; return a;}int main( ){ int i1=185,i2=-76,i3=567,i; double d1=56.87,d2=90.23,d3=-
2014-12-04 00:12:58 517
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人