Question: #include #ifndef ELLIPSE_H_ #define ELLIPSE_H_ /*REMEMBER TO LABEL THE FUNCTIONS THAT SHOULD BE CONST, CONST*/ /*DO NOT INLINE ANYTHING*/ class Ellipse{ public: Ellipse(double rad1=1, double
#include
#ifndef ELLIPSE_H_
#define ELLIPSE_H_
/*REMEMBER TO LABEL THE FUNCTIONS THAT SHOULD BE CONST, CONST*/
/*DO NOT INLINE ANYTHING*/
class Ellipse{
public:
Ellipse(double rad1=1, double rad2=1);
Ellipse(const Ellipse& ellipsePassedIn);
double getFirstRadius();
double getSecondRadius();
double getArea();
bool operation >= (const Ellipse& ellipsePassedIn);
friend std::osteam& operator <<(std::ostream& outs, const Ellipse& toOutput);
friend std:: istream& operator>>(std::istream& ins, Ellipse& toInput);
private:
double radius1;
double radius2;
};
bool operator == (coust Ellipse& one, const Ellipse& two);
#endif
1) In the following picture, find the beginning of the macroguard
2) In the following picture, find any non-friend function that can't alter the private variables of any Elipse instance direct
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
