瀏覽代碼

Print changes

= 7 年之前
父節點
當前提交
40f0215cb6
共有 3 個文件被更改,包括 2 次插入1 次删除
  1. 二進制
      a.out
  2. 1 0
      source1.h
  3. 1 1
      test.cc

二進制
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;