|
-
Mar 14th, 2007, 05:51 AM
#1
Thread Starter
Hyperactive Member
Filling the cin stream with a default value
I would like to fill the cin stream with information so that you can edit values without typing them all again. Is this possible?
-
Mar 14th, 2007, 06:02 AM
#2
Re: Filling the cin stream with a default value
No, not in standard C++.
Look at the GNU readline library, though.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 14th, 2007, 06:03 AM
#3
Addicted Member
Re: Filling the cin stream with a default value
 Originally Posted by singularis
I would like to fill the cin stream with information so that you can edit values without typing them all again. Is this possible? 
Are you talking about files? If not, then please be a little more clear.
-
Mar 14th, 2007, 08:29 AM
#4
Thread Starter
Hyperactive Member
Re: Filling the cin stream with a default value
Are you talking about files? If not, then please be a little more clear.
The cin stream is the standard input stream that takes input from the console
-
Mar 14th, 2007, 08:52 AM
#5
Re: Filling the cin stream with a default value
But what do you mean by filling, exactly?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 14th, 2007, 11:05 AM
#6
Thread Starter
Hyperactive Member
Re: Filling the cin stream with a default value
It is so the old value can literally be deleted, like with textboxes but without the mouse support
-
Mar 14th, 2007, 11:38 AM
#7
Re: Filling the cin stream with a default value
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|