Hi,
I have a code that reads some text from cin and parses it with a function whose header looks like
read(istream &in)
I would like to add a GUI with a textbox so that the user types in the textbox rather than to cin. I still would like to use read(istream &in) though. How do I convert the string typed in the textbox into an istream that can be parsed by read? (Is this even possible?)
Thanks
debbie
I have a code that reads some text from cin and parses it with a function whose header looks like
read(istream &in)
I would like to add a GUI with a textbox so that the user types in the textbox rather than to cin. I still would like to use read(istream &in) though. How do I convert the string typed in the textbox into an istream that can be parsed by read? (Is this even possible?)
Thanks
debbie