i'm practicing my use of functions at the moment by writing a program to convert pounds to euros and vise versa but when i try calling the functions that do the converting i get a load of
'expected primary-expression' errors.
what dose that actually mean because i'm not really sure tbh...
these are the lines its flagging up
if (choise == "p")
{
choise = "Euros";
output = p2e(float input, const float erate); //here
}
else if (choise == "e")
{
choise = "Pounds";
output = p2e(float input, const float erate); //and here
}
and these are the functions
float e2p (float input, const float erate)
{
cout << "How many Pounds would you like converted to Euros? ";
cin >> input;
return input * erate;
}
float p2e (float input, float)
{
cout << "How many Euros would you like converted to Pounds? ";
cin >> input;
return input * erate;
}
thanks in advance :)