candyapplecorn

Question.h

Nov 20th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. ///..............................................................
  2. ///
  3. ///This class is meant to be used in a trivia game program
  4. ///
  5. ///Joseph Burger
  6. ///
  7. #ifndef QUESTION_H
  8. #define QUESTION_H
  9. #include <fstream>
  10. #include <string>
  11.  
  12. using namespace std;
  13.  
  14. class Question
  15. {
  16. private:
  17.     string question, answer[4];
  18.     int correct;
  19.     static int score1, score2, whatNumQuestion;
  20. public:
  21.     Question(ifstream &triviaQuestions);
  22.     void printQandA();
  23.     void getAnswer(string *name);
  24.     int getscore1() { return score1; }
  25.     int getscore2() { return score2; }
  26.     int getWhatNumQuestion() { return whatNumQuestion; }
  27. };
  28.  
  29. #endif // QUESTION_H
Advertisement
Add Comment
Please, Sign In to add comment