#include <Questions.h>
Public Member Functions | |
void | addQuestion (QString question) |
void | addAnswer (QString answer) |
void | reset () |
int | getQuestionNumberCount () |
int | getQuestionNumberLiteral () |
int | getQuestionNumberTotal () |
int | getNextQuestion (QString &question) |
int | getNextAnswer (QString &answer) |
int | getAnyQuestion (QString &question) |
int | getAnyAnswer (QString &answer) |
QList< QString > | getQuestions () |
QList< QString > | getAnswers () |
QList< int > | getQuestionsAsked () |
int | generateRandomNumber (int min, int max) |
The score class is responsible for both the questions and the answers that will be presented to the student during a lesson.
In addition to this, the class is also responsible for tracking:
|
Generates a random number between min and max.
|
|
Resets the questions so that none have been asked |