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