// NTmach.h // specification for Number Theory Machine #include using namespace std; class NTmach{ public: // constructor //NTmach(); -- use the compiler-generated ctor //get-er //inline definition long get_n(){ return n; } //set-er //defined in .cpp file void set_n(long num); //number theory functions int numDigits(); int sumOfDivisors(); bool isPerfect(); bool isDeficient(){ return sumOfDivisors() < n; } int reverse_n(); private: long n; //data member that functions operate on //optional members, not required for P5 //arrays where you can store interesting numbers //add more, as necessary long primes[100]; long fibn[100]; };