code for Mph to Kph. URGENT HELP!

Apr 29, 2015 at 12:14pm
I have to write a code to convert Mph to Kph.

I'm lost on how I can fix the code.

#include <iostream>
#include <cstdlib>

using namespace std;

double ConvertToMPH (int MPH,);
double ConvertToKPH (double kph);

int main()
{
int MPH;
double KPH;

cout << "Please enter your MPH: ";
cin >> paceInMph;

return 0;
}

double ConvertToKPH(int MPH,)
{
return (MPH*1.61);
}

double ConvertTo(double kph)
{
return kph/1.61;
}
Apr 29, 2015 at 6:18pm
closed account (2LzbRXSz)
Your code isn't really finished? There's no call to your functions, and paceInMph isn't defined.
Last edited on Apr 29, 2015 at 6:18pm
Apr 29, 2015 at 6:28pm
Apr 30, 2015 at 12:40am
dude, you only need one post per topic
Topic archived. No new replies allowed.