You define the function to accept 6 arguments as
Code:
int change(int&, int&, int&, int&, int&, int&);
then you implement the function with 7 arguments as
Code:
int change (int money, int& hu, int& fi, int& tw, int& tn, int& fiv, int& on)
pick one and stick with it!
Code:
return hu, fi, tw, tn, fiv, on ;
A function can only return one value, so choose just one to return based on what the function is even doing. If you pass all of the arguments by reference, then you could change it to a "void" function instead of "int", so you dont have to return anything.
Code:
int change (int hund, int fift, int twent, int ten, int five, int one);
This isnt how you call a function. Do something like this instead (of course using your actual variables "hu", "fi", etc)
Code:
int myResult = change( myArg1, myArg2, etc);