What is the meaning of the & in the function?
Code:void affine(int a, int b, ifstream& input, ofstream& output)
THANKS
What is the meaning of the & in the function?
Code:void affine(int a, int b, ifstream& input, ofstream& output)
THANKS
It means that you are looking at C++ code instead of C code
And as C++, it means that the parameter is a reference parameter. For more information, you should read/work through an introductory book on C++.
*moved to C++ programming forum*
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Is there an operator in C that does the same thing?
It is not an operator in the first place. It is syntax, similiar to say, the syntax used to declare pointers. Now, there is no equivalent in C, but using a pointer parameter would be a similiar option in C.Is there an operator in C that does the same thing?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
I decided to use FILE* to get the job done