please explain to me why my Quiz Codes won't work

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
54
55
56
57
58
59
60
61
62
63
64
65
66
  THE GREAT QUIZ SHOW GAME
           BY
     Do You Even LIft
 
*/

// Include libraries
#include <iostream>
#include <string>

// using the namespace std;
using namespace std;

// Define the question class
class Question
{
private:
	string Question_Text;
	string Answer_1;
	string Answer_2;
	string Answer_3;
	string Answer_4;
	int Correct_Answer;
	int Prize_Amount; // how much the question is worth
public:
	void setValues (string, string, string, string, string, int, int,);
};


void main ()
{
	// show the title scren
	cout << "****************************" << endl;
	cout << "*                          *" << endl;
	cout << "* The Great Quiz SHow Game *" << endl;
	cout << "*                          *" << endl;
	cout << "*             By           *" << endl;
	cout << "*                          *" << endl;
	cout << "*     Do You Even Lift     *" << endl;
	cout << "*                          *" << endl;
	cout << "****************************" << endl;
	cout << endl;
	
	
	// Create instances
	Question q1;

	// Set values of the question instances
	q1.setValues ("What does cout do?",
		          "Eject a CD", "Send text to the printer", 
				  "Print text on the screen", 
				  "Play a sound", 
				  3, 
				  2500);
}
// Store values for Question variables
void Question::setValues (string q, string a1, string a2, string a3, string a4, int ca, int pa)
{
   Question_Text = q;
   Answer_1 = a1;
   Answer_2 = a2;
   Answer_3 = a3;
   Answer_4 = a4;
   Correct_Answer = ca;
   Prize_Amount = pa;
}
/*
Last edited on
Please use [code][/code] tags.

Please elaborate on what you mean by "it doesn't work." Compile errors? Incorrect output?
closed account (3hM2Nwbp)
errors @ lines 0 & 26 & 30 from a first glance.
Last edited on
Topic archived. No new replies allowed.