I have complied this code, it is suposed to work as an english quiz and my friend is compling the quiz bank. it generates random questions and 15seconds to answer the question, but it isnt working properly
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <string>
#include <fstream>
#include <iomanip>
using namespace std;
English Quiz
{
public:
int question(int);
int showQuestion(int, int, int, char);
void exit();
};
int leanne’s quiz::show questions(int operand1, int operand2, int answer, char operatorA)
{
questionid = cast(rand() * n as int)
// Where N is any number
cout <<"\n\n\t\t\tYou Took too long this time!! (" << delay << " seconds.)";
return(0);
}
//If they answer within 15seconds
if(operatorA == user_input)
{
cout<<"\n\n\t\t\tCorrect";
return(1);
}
else
{
cout <<"\n\n\t\t\tNot so smart this time ";
return(0);
}
}
}
void Quiz::exit ()
{
int main(void)
{
int i, num, score;
srand((unsigned)time(0));
Quiz quiz;
cout << "\tThis is the English Quiz \n";
cout << "\t5Points for each correct answer \n";
cout << "\tOnly 15sec to answer correct!!! \n";
cout <<"\tGood Luck!!!\n\n\n";
score=0;
for (i=0;i<=9;i++)