RS> TM> if (name=="Cyber Con")
RS> That doesn't work. You're comparing addresses. Use strcmp.
No. I call an overloaded operator==().
RS> TM> cout >> "Hi Cyber Con";
RS> TM> ofstream("file1.fil") << name;
RS> You have to open the file before you can write to it.
No. The ofstream constructor does that.
RS> TM> }
RS> And close it when you're done
No. The ofstream destructor does that.
Thomas
---
þ MM 1.0 #0113 þ Shin: Device for finding furniture in the dark.
---------------
* Origin: McMeier & Son BBS (2:301/138)
|