![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Hobbyist
Join Date: Sep 2005
Posts: 261
Rep Power: 4
![]() |
"the essence is there"...lol.
![]() I've seen and used 'flush', but 'cout.sync()' is a new one to me. The reason I asked is because I was thinking that maybe it was some compiler dependent thing. Thinking on it again, though, I guess anything that's complier depended would have no place to be under the 'std' namespace. |
|
|
|
|
|
#12 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
It's istream::sync.
I might have also said it wrong a bit ago :o.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#13 |
|
Newbie
Join Date: Jan 2006
Location: London, Ontario, Canada
Posts: 16
Rep Power: 0
![]() |
Hey guys,
Thanks a lot for your advice, especially you HacKer, it was so simple to just place the ofstream components in the main() program and eliminate the function fileout(). It worked like a charm. The solution was so simple that I didn't even think of it myself. Thanks a lot, really appreciate it.
__________________
Greatness courts failure and solitude. --- Anonymous |
|
|
|
|
|
#14 |
|
Hobbyist Programmer
|
Not a problem i was wondering why everybody was doing it in such a complicated way. I thought i must of missed something
|
|
|
|
|
|
#15 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
It may be a good idea to use the good function instead of doing if(!out).
__________________
"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 | |
|
|