[명품 C++] Open
과제는 주요 함수를 나타내고 클래스 Exp에 맞는 실수의 지수식을 작성하는 것이었습니다. 첫 번째 경험치 #ifndef EXP_H #define EXP_H class Exp { private: int base, exponent; public: Exp(); Exp(int ba, int e); Exp(int num); int getValue(); int getBase(); int getExp(); bool equals(Exp b); }; #endif 2.Exp.cpp #include “Exp.h” #include <cmath> Exp::Exp(): Exp(1) { } Exp::Exp(int ba, … Read more