Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///..............................................................
- ///
- ///This class is meant to be used in a trivia game program
- ///
- ///Joseph Burger
- ///
- #ifndef QUESTION_H
- #define QUESTION_H
- #include <fstream>
- #include <string>
- using namespace std;
- class Question
- {
- private:
- string question, answer[4];
- int correct;
- static int score1, score2, whatNumQuestion;
- public:
- Question(ifstream &triviaQuestions);
- void printQandA();
- void getAnswer(string *name);
- int getscore1() { return score1; }
- int getscore2() { return score2; }
- int getWhatNumQuestion() { return whatNumQuestion; }
- };
- #endif // QUESTION_H
Advertisement
Add Comment
Please, Sign In to add comment