2012年5月10日

函数模板与类模板

摘要: 1.类模板View Code 1 #include <iostream> 2 3 using namespace std; 4 5 template<typename T> 6 class CA 7 { 8 public: 9 CA(T v)10 {11 value = v;12 }13 14 void SetValue(T v)15 {16 value = v;17 }18 19 T GetValue()20 {21 return value;22 }23 24 pr... 阅读全文

posted @ 2012-05-10 10:01 ActiveChange 阅读(156) 评论(0) 推荐(0) 编辑

导航