CPosBigInt01
Home ] Up ]

 

//  CPosBigInt01.cpp
//  01/26/2004
//  Author: AOU

/*
a="12000000000001111111111113"
b="62222222222222222222222222222222222223"
c = a+b


*/

#include <iostream.h>

const int MAX_SIZE = 50;

class CPosBigInt
  {
  private:
    char digits[MAX_SIZE];

  public:
    CPosBigInt(void)
      {
      for (int i=0; i<MAX_SIZE; i++)
        digits[i] = '0';
      };
    void display(void)
      {
      for (int i=0; i<MAX_SIZE; i++)
        cout << digits[i];

      cout << endl;
      };
  };

// CPosBigInt a;

void main(void)
  {
  CPosBigInt john;
  john.display();
  }

/*
SAMPLE OUTPUT:
00000000000000000000000000000000000000000000000000
Press any key to continue
*/