Hey i am trying to get a single long double to update when i add something to it. It works, but not how i want it to work. I am using cout in a while loop to update it and i was hoping for a way to update the same line in the command window, instead of it adding a new line underneath all the time.
Any help is appreciated.
The only time you'll get a new line is if you make one yourself with endl /*or*/ '\n', or if you're asking for user input. There's no way to get around the user input problem as far as I know, but if you're just incrementing the double then you could do something like:
You could try using \r and \b. The first moves the cursor back to the start of the line, the latter back one character. Neither erase the exisiting text, so you've got to supply enough chars to erase all the old ones.