Reset the consol
Moschops (5961)
Aug 30, 2012 at 7:03pm UTC
What does "reset the consol window" mean? Do you mean all the words on it vanish?
Hashimatsu (120)
Aug 30, 2012 at 7:16pm UTC
Yes. And the loop starts over and shows the menu again on a blanc consol.
Dash (122)
Aug 30, 2012 at 7:17pm UTC
The program uses system("cls" ) , that's why.
Hashimatsu (120)
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?
Dash (122)
Aug 30, 2012 at 7:52pm UTC
Yes, you should avoid it when you can.
Hashimatsu (120)
Aug 30, 2012 at 8:12pm UTC
Is there no other way to make the consol blanc again?
Moschops (5961)
Aug 30, 2012 at 8:20pm UTC
Lots of ways, in that article I linked to.
Dash (122)
Aug 30, 2012 at 8:21pm UTC
Use any method in that article again...
closed account (4i67ko23 )
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" );
Shock Bolt (8)
Aug 31, 2012 at 1:45pm UTC
That looks horrible, no offence though..
closed account (4i67ko23 )
Aug 31, 2012 at 1:46pm UTC
what's wrong with it?
Dash (122)
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.
Hashimatsu (120)
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.
Shock Bolt (8)
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.
Topic archived. No new replies allowed.