Now you're starting to look like a troll.
Count the opening braces in your code ( { ).
Count the closing braces in your code ( } ).
Tell us how many of each you have.
Type: Posts; User: Matticus
Now you're starting to look like a troll.
Count the opening braces in your code ( { ).
Count the closing braces in your code ( } ).
Tell us how many of each you have.
That's fine, but we have not even gotten to any programming related advice. We're trying to start by making sure the code you posted has the correct syntax so you can compile it. I told you exactly...
Indeed.
Me: "The answer to question #4 is 'B'."
You: "How do I work this pencil?"
Well, that's funny. You didn't add the closing brace after the loop like I said (I even gave you the line number).
Nor did you take the advice in post #8 about "main()" returning an int, not void.
Go through your code carefully and make sure there is a closing brace for every opening brace.
If you are completely sure they are all there, try rebuilding the project and running it again.
If it...
Proper indentation is essential to writing good programs. Since you're new here, I'll give you a freebie this time. Here is your code with proper indentation.
#include<iostream.h>
void...
Post your updated code, and tell us how it did not work.
do-while loop
And try not to cross-post.