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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#include <iostream>
#include <iomanip>
#include <fstream>
using namespace std;
void enterAnswers(char questions);
void compareLetters(char correctAnswers[] , char questions[])
int main()
{
//First Array
char correctAnswers[] = {'a', 'd', 'a', 'a', 'c', 'a', 'b', 'a', 'c', 'd'};
//Second Array
char questions[] = {1,2,3,4,5,6,7,8,9,10};
//Pass the second array to a function:
void enterAnswers(char questions[]);
//Call the other functions, both arrays in the second function
void compareLetters(char correctAnswers[] , char questions[]);
void passOrFail();
system("pause");
return 0;
}
void enterAnswers(char questions)
{
//Stuck on the while loop
//Will the prompt be inside the loop?
}
void compareLetters(char correctAnswers[] , char questions[])
{
}
void passOrFail()//Parameter will be the number correct
{
}
|