Thank you about your enhacement in my code, i will test it tomorrow and tell you...but yes, it seems i'm a really newbie yet :(
Thanks you again :)
User Profile
Collapse
-
Absolutely YES! fual,
I was trying stupidly to define it as std:ostringstre am ss instead of just defining it as stringstream which allows me to insert and take from it.
Just for future searchers, i just give here the code it is working now: (code can be simplified but i think it is usefull for newbies in this way)
...Code:static bool myfunction (istream & in) { string line; uintLeave a comment:
-
Newbie question about streams (istream,ostream,ifstream)
Hello.
I have a very newbie question about Streams. The situation is that i have a function (that i cannot modify it's definition/call):
Until now this function was called passing a istream that had been previously filled with the content of a file...Code:public void F1(istream & in){ while( ...) { in >> value do stuff with value; } }
No activity results to display
Show More
Leave a comment: