Don't like ads? PRO users don't see any ads ;-)
Guest

Overload public methods with local ones

By: YominCarr on Mar 22nd, 2012  |  syntax: C++ (with QT extensions)  |  size: 0.43 KB  |  hits: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //BigInteger.h
  2.  
  3.     BigInteger();
  4.     BigInteger(int number);
  5.     BigInteger(long number);
  6.     BigInteger(long long number);
  7.     BigInteger(const BigInteger& bigInt);
  8.  
  9.   //BigInteger pow(BigInteger const& firstInt, BigInteger const& otherInt) const;
  10.  
  11. //BigInteger.cpp
  12.  
  13.     char charLimit = ((char) std::pow(2.0, sizeof(char)*8.0-1.0))-2;
  14.  
  15. /*
  16. Need to use std::pow oder ::pow to definitively use the global defined function!
  17. */