in main() :
----> int num = 1;

function call :
---->ClassInstance.Write(&num,1);

function prototype :
int Cls::Write(int *pn, int food)


In the function how can i see what is in *pn ?

When i say---> cout<<"pn = "<<(int)pn<<endl;
---result = 1244044, IT SHOULD BE 1


i'll need to say stuff like if (total > pn)