Commit a986f3fc authored by Jared Sexton's avatar Jared Sexton

Corrected a typo

parent 90387d9a
/* ============================================================================
Question Class Driver
Jared Sexton
============================================================================
*/
#include "Questions.h"
#include <iostream>
using namespace std;
int main() {
Questions questionList;
questionList.countingQuestion(2);
return 0;
}
\ No newline at end of file
......@@ -4,29 +4,27 @@
============================================================================
*/
#include <iostream>
#include <cstdlib>
using namespace std;
void mainQuestionAsk(int level);
int determineQuestion(int level);
bool countingQuestion(int level) {
int countTo;
switch(level) {
case 1:
int countTo = rand % 5;
countTo = rand() % 5;
break;
case 2:
int countTo = rand % 10;
countTo = rand() % 10;
break;
case 3:
int countTo = rand % 20;
countTo = rand() % 20;
break;
default
default:
cerr << "Please see your teacher about your current level.";
break;
}
......
......@@ -4,21 +4,20 @@
============================================================================
*/
#include <iostream>
class Questions {
void mainQuestionAsk(int level);
int determineQuestion(int level);
// Asks a question, returns true if the kid was right, false if they were wrong.
bool countingQuestion(int level);
void addSubQuestion(int level);
void wordQuestion(int level);
public:
void mainQuestionAsk(int level);
int determineQuestion(int level);
// Asks a question, returns true if the kid was right, false if they were wrong.
bool countingQuestion(int level);
void addSubQuestion(int level);
void wordQuestion(int level);
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment