pass the parameters as a refrence.
void unitconversion (double &lengthme, double &lengthcent);
remove the return statement in unitconversion
don't cout<<unitoutput(lengthme, lengthcent);
...
Type: Posts; User: Chanakya
pass the parameters as a refrence.
void unitconversion (double &lengthme, double &lengthcent);
remove the return statement in unitconversion
don't cout<<unitoutput(lengthme, lengthcent);
...
Errors:
1. You haven't called the unitconversion function.
2. A function can return only one value at time, you might pass the parameters as a reference.
3. don't cout<<unitoutput(lengthme,...