-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquestion.h
More file actions
21 lines (19 loc) · 724 Bytes
/
question.h
File metadata and controls
21 lines (19 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <string>
#ifndef QUIZLINE_QUESTION_H
#define QUIZLINE_QUESTION_H
class Question {
public:
Question();
Question(int category, std::string question, std::string correct, std::string wrong1, std::string wrong2, std::string wrong3);
Question(int category, std::string question, std::string correct, std::string wrong1, std::string wrong2, std::string wrong3, int qid);
int qid;
int category;
std::string question;
std::string correct;
std::string wrong1;
std::string wrong2;
std::string wrong3;
private:
void init(int category, std::string question, std::string correct, std::string wrong1, std::string wrong2, std::string wrong3, int qid);
};
#endif //QUIZLINE_QUESTION_H