do not confuse references
void foo (int &name);
with pointers
void foo (int *name);
Aside from that, you pretty much went over all you can do with C++ in the matter (save for using containers such as vectors, etc).
references are marginally better (check Stroustrup for details), but that's what you have to play with.
|