Hi,

how do u write a prototype of a function that passes by reference
Code:
//function definition

int playerLoss(int &playerMoney)
{
   int x=45;
   return playerMoney-=x;
}
and at the moment i have the definition as
Code:
int playerLoss( int  & a );
I keep getting an error message saying:cannot convert parameter 1 from 'int *__w64 ' to 'int &'

Im using msvc express...