Question: Please note, you are required to include the following when you use g++ to compile: -pedantic For example: g++ -pedantic filename.cpp This will give a
Please note, you are required to include the following when you use g++ to compile: -pedantic For example: g++ -pedantic filename.cpp This will give a warning if you attempt to use any non-standard feature in g++. You must correct your code so that you do not receive any warnings of this type. Log on to the Linux server. Use your four files: Long.h Long.cpp LongMain.cpp Makefile In Long.h: #ifndef _LONG_H_ #define _LONG_H_ #include using namespace std; class Long { unsigned long long _n; bool _ispos; public: Long(); Long(long long); void add(const Long&); void display() const; void sub(const Long&); void mult(const Long&); void div(const Long&); }; #endif In Long.cpp, implement these member functions. You must make sure that you never have a negative zero. You must not use any built-in functions In LongMain.cpp, write a test main to test your code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
