Changeset 274:28728f3945c5 in lemon0.x for src/work/bin_heap_demo.cc
 Timestamp:
 04/01/04 23:06:53 (17 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@386
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/work/bin_heap_demo.cc
r258 r274 54 54 heap.set("korte", 3.4); 55 55 56 cout << "heap.get(\"alma\") = "57 << heap.get("alma")58 << endl;59 56 cout << "heap[\"alma\"] = " 60 57 << heap["alma"] … … 63 60 cout << "heap.top() = " 64 61 << heap.top() << endl; 65 cout << "heap. topPrio() = "66 << heap. topPrio() << endl;62 cout << "heap.prio() = " 63 << heap.prio() << endl; 67 64 68 65 cout << "heap.decrease(\"alma\", 1.2);\n"; … … 71 68 cout << "heap.top() = " 72 69 << heap.top() << endl; 73 cout << "heap. topPrio() = "74 << heap. topPrio() << endl;70 cout << "heap.prio() = " 71 << heap.prio() << endl; 75 72 76 73 cout << "heap.set(\"alma\", 22);\n"; … … 79 76 cout << "heap.top() = " 80 77 << heap.top() << endl; 81 cout << "heap. topPrio() = "82 << heap. topPrio() << endl;78 cout << "heap.prio() = " 79 << heap.prio() << endl; 83 80 84 81 cout << "heap.size() = " … … 89 86 cout << "heap.top() = " 90 87 << heap.top() << endl; 91 cout << "heap. topPrio() = "92 << heap. topPrio() << endl;88 cout << "heap.prio() = " 89 << heap.prio() << endl; 93 90 94 91 cout << "heap.state(\"szilva\") = "
Note: See TracChangeset
for help on using the changeset viewer.