Aug 30, 2012 at 7:03pm UTC
What does "reset the consol window" mean? Do you mean all the words on it vanish?
Aug 30, 2012 at 7:16pm UTC
Yes. And the loop starts over and shows the menu again on a blanc consol.
Aug 30, 2012 at 7:17pm UTC
The program uses system("cls" )
, that's why.
Aug 30, 2012 at 7:46pm UTC
Thanx alot!
That's a lot of mind-boggling information. I'm still a beginner, but what I understand is that system()
is evil? And as a beginner I would probably do best in not using it?
Aug 30, 2012 at 7:52pm UTC
Yes, you should avoid it when you can.
Aug 30, 2012 at 8:12pm UTC
Is there no other way to make the consol blanc again?
Aug 30, 2012 at 8:20pm UTC
Lots of ways, in that article I linked to.
Aug 30, 2012 at 8:21pm UTC
Use any method in that article again...
Aug 31, 2012 at 1:42pm UTC
You can use this to clear it:
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" );
Aug 31, 2012 at 1:45pm UTC
That looks horrible, no offence though..
Aug 31, 2012 at 1:50pm UTC
You can use a loop to achieve the same thing, it's still not a great method though.
Aug 31, 2012 at 1:54pm UTC
I did use system("cls" )
and it did work. Having some problem with it tho, but I'll figure it out...
Thanks for all the help! This question is solved.
Aug 31, 2012 at 4:52pm UTC
"what's wrong with it?"
It takes up more room, you can just make a for loop with only one "\n", takes less time personally.