expected unqualified-id before do?

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
// c++ quiz for beginners
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <string>

using namespace std;
int main ()
{
char guess1, guess2;
bool endgame = false, a1 = false, a2 = false;
// a1 meaning if question 1 has been answered correctly.
do {
cout << "What character is at the end of most lines, including declarations?";
cout << "\na. ;\nb. :\nc. '\n";
cin >> guess1;
if (guess1 == ';' or 'a') puts ("Hurrah! ; is a character used at the end of most lines.\nQuestion 2:") and (a1 = true);
else (cout << ("Sorry! Try again."));
} while (endgame = false);
}

do {
if (a1 == false)
else (cout << "What does int stand for?\na. Introducing \nb. Internal \nc. Integer")
else (cin >> guess2)
do {
if (guess2 = "c" or "Integer") puts(cout << "Hurrah! int does stand for integer, and it is the term\nyou use when declaring one.")
}


The error is on the bold do. I have been trying solutions to this problem for at least an hour now, I need help :(
@Line 21: Why do you have a curly bracket there?

-Albatross
Topic archived. No new replies allowed.