I would like to fill the cin stream with information so that you can edit values without typing them all again. Is this possible? :confused:
Printable View
I would like to fill the cin stream with information so that you can edit values without typing them all again. Is this possible? :confused:
No, not in standard C++.
Look at the GNU readline library, though.
Are you talking about files? If not, then please be a little more clear.Quote:
Originally Posted by singularis
The cin stream is the standard input stream that takes input from the console :ehh:Quote:
Are you talking about files? If not, then please be a little more clear.
But what do you mean by filling, exactly?
It is so the old value can literally be deleted, like with textboxes but without the mouse support
Sounds more like curses than readline, then.
Either way, standard C++ doesn't support such things. cin is a linear stream - you cannot even seek in it.