Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/verbose.cpp

    r6ac7ee rce5ac3  
    77ostream& Verbose::print (ostream &ost) const
    88{
    9         for (int i=Verbosity;i--;)
    10                 ost.put('\t');
    11         //cout << "Verbose(.) called." << endl;
    12         return ost;
     9  for (int i=Verbosity;i--;)
     10    ost.put('\t');
     11  //cout << "Verbose(.) called." << endl;
     12  return ost;
    1313};
    1414
     
    2222ostream& operator<<(ostream& ost,const Verbose& m)
    2323{
    24         return m.print(ost);
     24  return m.print(ost);
    2525};
    2626
     
    3333ostream& Binary::print (ostream &ost) const
    3434{
    35         int bits = 1, counter = 1;
    36         while ((bits = 1 << counter) < BinaryNumber)
    37                 counter++;
    38         for (int i=0;i<counter-1;i++) {
    39                 if ((BinaryNumber & (1 << i)) == 0)
    40                         ost.put('0');
    41                 else
    42                         ost.put('1');
    43         }
    44         ost.put('b');
    45         //cout << "Binary(.) called." << endl;
    46         return ost;
     35  int bits = 1, counter = 1;
     36  while ((bits = 1 << counter) < BinaryNumber)
     37    counter++;
     38  for (int i=0;i<counter-1;i++) {
     39    if ((BinaryNumber & (1 << i)) == 0)
     40      ost.put('0');
     41     else
     42      ost.put('1');
     43  }
     44  ost.put('b');
     45  //cout << "Binary(.) called." << endl;
     46  return ost;
    4747};
    4848
     
    5656ostream& operator<<(ostream& ost,const Binary& m)
    5757{
    58         return m.print(ost);
     58  return m.print(ost);
    5959};
Note: See TracChangeset for help on using the changeset viewer.