1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
void inputAnswer(char given[]);
void numbercorrect(char numberRight, int questions);
int main()
{
char cAnswers[] = { 'A', 'B', 'C', 'D', 'A', 'B', 'C', 'D', 'A', 'B', 'C', 'D', 'A', 'B', 'C' };
char questions[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
char inputAnswer(int questions);
{
int count;
cout << "Please enter your answer for question #" << (count + 1) << ": ";
cin >> questions;
}
{
cout << "Your quiz grade is: " << +10 * numberRight + "%";
}
int numberCorrect(char numberRight, int questions);
return 0;
}
|