Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Help with cout

Author: Dave Dory

Date: 01:28:41 10/02/99

Go up one level in this thread


On October 02, 1999 at 02:37:48, James Robertson wrote:

>Whenever cout is used, say:
>for (percent = 0; percent <= 100; percent ++)
>  cout << "% complete: " << percent << endl;
>
>the output will look like:
>
>% complete: 0
>% complete: 1
>.....
>
>How do I make it so that the second cout statment will 'back up', i.e. overwrite
>the first statement so it is no longer visible?
>
>Thanks,
>James

By prayer, fasting, and contemplation, James!!!



gotoxy(col, row) ???

What do you __mean, __gotoxy(col, row) !!!

No __wonder__ my Chess program never get's finished!!! ;-D

Of course, endl is not needed inside the display loop. Once afterward is all you
need.

I'm still using a prehistoric compiler, so your mileage may vary.

Dave






This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.