几点说明: 例63 Include<iostream. h> template<class type1, class type2> void myfunc(type1 x, type2 y) cout<<x<<<<y<<end1 void main( myfunc(10,”hao") myfunc(0.123, 10L) 程序运行结果为: 10 hao 0.12310几点说明: 例6.3 #include<iostream.h> template<class type1, class type2> void myfunc(type1 x,type2 y) { cout<<x<<’’<<y<<end1; } void main() { myfunc(10, ”hao”); myfunc(0.123, 10L); } 程序运行结果为: 10 hao 0.123 10 7