I'm new to this forum and I browsed for some code snippets and such.
often I see such fancy batch files/code like this:
Code: Select all
Index: include/irrMap.h
===================================================================
--- include/irrMap.h (revision 1444)
+++ include/irrMap.h (working copy)
@@ -830,7 +830,10 @@
{
Root = newRoot;
if (Root != 0)
+ {
Root->setParent(0);
+ Root->setBlack(); // The root must always be black
+ }
}
//! Insert a node into the tree without using any fancy balancing logic.
TIA, Jupp