0001 /****************************************************************************************** 0002 * 打印输出PQ_List 0003 ******************************************************************************************/ 0004 template <typename T> //元素类型 0005 void UniPrint::p ( PQ_List<T> & pq ) { //引用 0006 printf ( "%s*%d:\n", typeid ( pq ).name(), pq.size() ); //基本信息 0007 p ( ( List<T> & ) pq ); printf ( "\n" ); 0008 }