Indent isnt supposed to get "fixed", your text editor does the indent for you. Whenever text editor enters new {} body it indents it for 4x spaces, when it exits the body it removes 4x spaces of indent.
Also I am worried about that teacher who isnt caring for coding style.
Since you are using linux system("cls") wont work, and neither will that chunk of code I posted work.
PS. I was just trying to help, and you got all mad on me beacuse I didnt solve your problem in an instant. Understanding random number generation, the gotos, if statement, the fact that code should be more readable is much more usefull than making that ugly piece of code work.
Good luck with your teacher *insert alot of sarcasm here*
Hi MeltyGoblin
But didn't you want the whole sequence to be hidden after each user entry?
So the first time you've got to remember just 1 letter, second time 2, third time 3, etc. That's not happening, at least not on my system. I'm just trying to think how you'd fix it...
PS. I was just trying to help, and you got all mad on me beacuse I didnt solve your problem in an instant. Understanding random number generation, the gotos, if statement, the fact that code should be more readable is much more usefull than making that ugly piece of code work.
I apologize for getting upset with you, but you also should understand my frustration, I kind of outlined that in a post towards TheMeerkat
Good luck with your teacher *insert alot of sarcasm here*
you don't know the half of it, she barely speaks English, I can't understand her heavy accent and she thinks some words mean other things, thus I make many simple coding mistakes.
Hi MeltyGoblin
But didn't you want the whole sequence to be hidden after each user entry?
So the first time you've got to remember just 1 letter, second time 2, third time 3, etc. That's not happening, at least not on my system. I'm just trying to think how you'd fix it...
The program I have is acceptable, but not ideal. My professor didn't really specifically state where to erase the whole sequence or just the most recent. Though she did specifically tell us to use flush. If there is a way I could erase the whole sequence I will do it. Otherwise I am satisfied with this program.
this erases the entire screen, so not only does it prevent you from using your past answers to help with future answers, it cleans up the game quite a bit. So all you see on screen is
please enter (round variable) number of characters to match: (player entry)
this erases the entire screen, so not only does it prevent you from using your past answers to help with future answers, it cleans up the game quite a bit.
Great stuff, well done ;)
And good luck with your, erm, dodgy teacher.