![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Programmer
Join Date: Jun 2005
Posts: 99
Rep Power: 4
![]() |
Sorry that was me being stupid, i forgot to change the input string back to "123" and I thought it had worked :/
Your right you cant pass goodbit into setstate(), instead change the line to: s.clear( stringstream::goodbit ); this will clear the state to goodbit, and I promise this time it woks ![]() |
|
|
|
|
|
#12 | |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 516
Rep Power: 4
![]() |
Quote:
I thank you. My wife thanks you. My sister thanks you. My brother thanks you. My mother thanks you. My father thanks you. My aunt thaks you. My uncle thanks you. ... (get the idea?) ![]() |
|
|
|
|
|
|
#13 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
I searched google for a while, indeed it's not easy to find.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|