file stream pointers

Script Coder (456)
I would just like to know is doing this:
void foo(ifstream fin);

less efficient than this:
void foo(ifstream *fin);
cire (2347)
I believe the second is probably more efficient, since the first isn't legal.

Perhaps you meant:

void foo(ifstream & fin);

in which case the "efficiency" is equivalent.
Aceix (476)
yeah i think thats true.

Aceix.
Registered users can post here. Sign in or register to post.