template<class T,int i>class love{
50 public:
51 love(T val1,int val2):value(val1),key(i){
52 }
53 void print(){
54 cout << "the value " <<value << "the key " << key << endl ;
55 }
56 void shuchu(); // 这个函数不在类内定义
57 private:
58 T value;
59 int key;
60 };
61 template<class T,int i> void love<T,i>::shuchu(){ //此处定义看清楚
62 cout << value << key << endl;
63 }
l