ufmain - main(int argc, char** argv) { Gentree* gt = new...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> // for cout calls #include <stdlib.h> #define ROOT -1 // Collect together the UNION/FIND functions #include "uf.h" using namespace std; // for string declaration
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: main(int argc, char** argv) { Gentree* gt = new Gentree(10); gt-&gt;UNION(1, 2); cout &lt;&lt; gt-&gt;differ(0, 1) &lt;&lt; endl; cout &lt;&lt; gt-&gt;differ(2, 1) &lt;&lt; endl; }...
View Full Document

This note was uploaded on 01/19/2010 for the course CSC 375 taught by Professor Turner during the Spring '09 term at University of Michigan-Dearborn.

Ask a homework question - tutors are online