Oct 20, 2003 #1 mayu03 Programmer Joined Oct 3, 2003 Messages 91 Location US How to add an ifstream (or fstream) object into function as a parameters.
Oct 20, 2003 #2 Cagliostro Programmer Joined Sep 13, 2000 Messages 4,226 Location GB yourfunction(ifstream& x) { x.read(... } Ion Filipski ICQ: 95034075 AIM: IonFilipski filipski@excite.com Upvote 0 Downvote
yourfunction(ifstream& x) { x.read(... } Ion Filipski ICQ: 95034075 AIM: IonFilipski filipski@excite.com
Oct 20, 2003 Thread starter #3 mayu03 Programmer Joined Oct 3, 2003 Messages 91 Location US Am I calling this function correct? yourfunction(x) Upvote 0 Downvote
Oct 20, 2003 #4 Cagliostro Programmer Joined Sep 13, 2000 Messages 4,226 Location GB if your x is an ifstream or an ifstream& then yes Ion Filipski ICQ: 95034075 AIM: IonFilipski filipski@excite.com Upvote 0 Downvote
if your x is an ifstream or an ifstream& then yes Ion Filipski ICQ: 95034075 AIM: IonFilipski filipski@excite.com