0001 template <typename T> void UniPrint::p(Skiplist<T>& s) { //Skiplist 0002 printf("%s*%d*%d:\n", typeid(s).name(), tower(s.head).size(), s.size()); //»ù±¾ÐÅÏ¢ 0003 for (Rank h = tower(s.head).size(); 0 < h; h--) { 0004 print("-INF"); 0005 for (ListNode<Tower<T>>* x = s.head->succ; x != s.tail; x = x->succ) 0006 if (tower(x).size() < h) 0007 print("----"); 0008 else 0009 print(key(x)); 0010 print("+INF\n"); 0011 } 0012 printf("\n"); 0013 }