标签:style blog http io ar color os sp on
1 #include <iostream> 2 3 using namespace std; 4 5 6 template <class t1,class t2> 7 t1 ff(t1 a,t1 b,t2 c) 8 { 9 cout<<a+b<<‘ ‘<<c<<endl; 10 return 0; 11 } 12 13 int main() 14 { 15 ff(1,2,3.1); 16 ff(1.2,2.0,‘a‘); 17 return 0; 18 }
标签:style blog http io ar color os sp on
原文地址:http://www.cnblogs.com/jiu0821/p/4156539.html