I have been trying to make a program where the user is presented with an array of 10 variables between the numbers 50 and 150. I have several other questions but right now I'm running into this issue.
The specific errors are these:
main.cpp|59|error: expected 'while' before numeric constant|
main.cpp|59|error: expected '(' before numeric constant|
main.cpp|59|error: expected ')' before ';' token|
Isn't a do while loop supposed to have while at the end of the do loop?
The program is supposed to repeat unless 'q' or 'Q' is selected. When it repeats the array is supposed to generate a new set of numbers. The user will be prompted to choose from a small selection of options. the Choice of 'q' and/or 'Q' is supposed to end the program. Is it somehow not a part of the do loop?
I would suggest removing the {} at lines 7 and 9. Although the braces are allowed, they are not needed and make line 8 appear as if it is part of the while statement at line 6.
In fact line 8 doesn't do anything. You never check the variable loop and immediately exist after setting it.