ok I"m fairly new to C++, been taking classes for a sememester. I can't figure out why this isn't working for me.
I have a function double CalcExchangeAmount(double , int );
and I want to pass the result of it to another variable also of type double. I keep getting a compile error: type 'double' unexpected.
I don't understand why I can't assign the double result of the function to another double variable, all my other functions doing similar things with ints are working fine.
so thanks if I can get some idea on why it doesn't work.
I have a function double CalcExchangeAmount(double , int );
and I want to pass the result of it to another variable also of type double. I keep getting a compile error: type 'double' unexpected.
I don't understand why I can't assign the double result of the function to another double variable, all my other functions doing similar things with ints are working fine.
so thanks if I can get some idea on why it doesn't work.