#ifndef _SIMPLEMATHQUEST_H #define _SIMPLEMATHQUEST_H // ask a question involving arithmetic // // // constructor Question() -- creates a new question // void Ask() const -- ask the question // // bool IsCorrect(ưnt answer) const // -- return true iff answer is correct // int CorrectAnswer() const // -- return the answer of the question // int GetAnswer() const // -- input and returns the user's response to the question // #include using namespace std; class Question { public: Question(); bool IsCorrect(int answer) const; int CorrectAnswer() const; void Ask() const; private: int myAnswer; // store the answer int myNum1; // numbers used in question int myNum2; }; #endif