i'm not sure what i'm doing wrong here........ maybe someone can help me out a little........ here's what i have so far. thanks!
#include <iostream>
#include <iomanip>
using namespace std;
float GetData (float miles, float hours, float milesPerHour);
int main ()
{
float miles;
float hours;
float milesPerHour;
cout.setf(ios::fixed, ios::floatfield);
cout.setf(ios::showpoint);
GetData (float miles, float hours, float milesPerHour);
milesPerHour = miles / hours;
cout << setw(10) << miles
<< setw(10) << hours
<< setw(10) << milesPerHour << endl;
return 0;
}
//************************************************** ***
float GetData (float miles, float hours, float milesPerHour)
{
cout<<"Please enter the amount of miles and hours.";
cout<< "Press the enter key after each entry."<<endl;
cin>>miles;
cin>>hours;
}



LinkBack URL
About LinkBacks


