Changeset 560995 for molecuilder/src/verbose.cpp
- Timestamp:
- Jul 23, 2009, 12:32:48 PM (16 years ago)
- Children:
- f39735
- Parents:
- 307290
- File:
-
- 1 edited
-
molecuilder/src/verbose.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/verbose.cpp
r307290 r560995 22 22 ostream& operator<<(ostream& ost,const Verbose& m) 23 23 { 24 return m.print(ost);24 return m.print(ost); 25 25 }; 26 26 … … 33 33 ostream& Binary::print (ostream &ost) const 34 34 { 35 int bits = 1, counter = 1;36 while ((bits = 1 << counter) < BinaryNumber)35 int bits = 1, counter = 1; 36 while ((bits = 1 << counter) < BinaryNumber) 37 37 counter++; 38 38 for (int i=0;i<counter-1;i++) { 39 if ((BinaryNumber & (1 << i)) == 0)40 ost.put('0');41 else42 ost.put('1');39 if ((BinaryNumber & (1 << i)) == 0) 40 ost.put('0'); 41 else 42 ost.put('1'); 43 43 } 44 44 ost.put('b'); … … 56 56 ostream& operator<<(ostream& ost,const Binary& m) 57 57 { 58 return m.print(ost);58 return m.print(ost); 59 59 };
Note:
See TracChangeset
for help on using the changeset viewer.
