ojosVerdes
Technical User
I have a program that manipulates records read from a text file. This program has a counter, and I display the counter by using cout << lngCnt;
I run this program from the command line is DOS based.
However the result I get are 123456789101112...
I get the first record, then on the same line a get 2, right next to the one, and then 3 and next to the 2 and so on.
I tryed using cout << lngCnt << endl; but that put a line after each record displayed.
how can I make the counter stay(display) in the same place?
Is this possible?
Thanks in advance.
Ed.
I run this program from the command line is DOS based.
However the result I get are 123456789101112...
I get the first record, then on the same line a get 2, right next to the one, and then 3 and next to the 2 and so on.
I tryed using cout << lngCnt << endl; but that put a line after each record displayed.
how can I make the counter stay(display) in the same place?
Is this possible?
Thanks in advance.
Ed.