Browse Source

Print changes

= 7 years ago
parent
commit
40f0215cb6
3 changed files with 2 additions and 1 deletions
  1. BIN
      a.out
  2. 1 0
      source1.h
  3. 1 1
      test.cc

BIN
a.out


+ 1 - 0
source1.h

@@ -57,6 +57,7 @@ class Triehard // compressed binary trie
 				//Side is 0 (left) or 1 (right)
 				void print(int side,string output = ""){
 					string val = getNodeVal(side);
+					cout << "Side: " << side << " Val: " << val << " Mag: " << magnitude <<  endl;
 					if(getFlag()){
 						cout << output + val << endl;
 					}

+ 1 - 1
test.cc

@@ -6,7 +6,7 @@ int main()
 {
 	Triehard * test = new Triehard();
 	cout << "success!" << endl;
-	int x[4] = {0,1,1};
+	int x[4] = {0,1,0};
 	cout << "success!" << endl;
 	int y[5] = {1,0,1,1,0};
 	cout << "success!" << endl;