template < typename T > T max( T arg1, T arg2 ) { cout << typeid( T ).name() << "s compared." << endl; return ( arg1 > arg2 ? arg1 : arg2 );}返回类型的名字
posted on 2008-02-15 10:27 Randy 阅读(169) 评论(0) 编辑 收藏 引用
Powered by: C++博客 Copyright © Randy