摘要:
templateclass love{ 50 public: 51 love(T val1,int val2):value(val1),key(i){ 52 } 53 void print(){ 54 cout void love::shuchu(){ //此处定义看清楚 62 cout << value << key << endl; 63 }l 阅读全文
摘要:
#if 0 35 typedef templatestruct node{ 36 T key; 37 P value; 38 }node; 39 template class pair{ 40 public: 41 pair(T t1,int i); 42 void insert(T val1,P val2); 43 int del(T val1,P val2); 44 private: 45 const int sum; 46 node *value; 47 }; 48 #endif 阅读全文