c++ Programming Glossary: bignum.digits
c++ friend function - operator overloading istream >> http://stackoverflow.com/questions/3312269/c-friend-function-operator-overloading-istream is BigNum bignum for size_t i 0 i bignum.get_used i is bignum.digits i return is So in this regard the above friend operators compiled.. my operator can access one private variable directly is bignum.digits i but the rest of the private variables need to be retrieved.. false os ' ' for size_t i 0 i bignum.used i os bignum.digits used i 1 return os std istream operator std istream is BigNum..
|