I'm missing something really basic on this one I'm sure. We have to write a program using a class Odometer, that will track fuel and mileage of a car. The member functions are given: one to set fuel efficiency, one to accept total miles driven and add to the odometer total, one that will return the number of gallons of gasoline that the vehicle has consumed since resetting. I'm receiving a linker 1120 "cannot find file Odometer.exe." I've tried saving the project and reopening, to no avail. At one point, it DID compile! I have other problems with my main, but obviously need to resolve this one first. I am a newbie, and have Finals and many more projects due...
Thank you for any help
#include <iostream>
using namespace std;
class Odometer
{
public:
Odometer();
void reset();
void compute_fuel();
void input_miles(int getmiles);
void Odometer::set_fuel_efficiency(double fuel_efficiency);
double Odometer::get_num_gallons();
int gallons_consumed;
private:
int miles_tracker;
double fuel_efficiency;
int getmiles;
};
Odometer::Odometer()
{
miles_tracker = 0;
fuel_efficiency = 0;
}
void Odometer::reset()
{
miles_tracker = 0;
}
void Odometer::compute_fuel()
{
fuel_efficiency = (miles_tracker/gallons_consumed)
}
void Odometer::input_miles(int miles_driven)
{
miles_tracker = miles_tracker + miles_driven;
}
void Odometer::set_fuel_efficiency(double Fuel_efficiency)
{
fuel_efficiency = Fuel_efficiency;
}
double Odometer::get_num_gallons()
{
return miles_tracker/fuel_efficiency;
}
int main()
{
Odometer simulator;
int miles_driven;
simulator.input_miles(int miles_driven);
cout << "Please enter the amount of miles driven : " << endl;
cin >> miles_driven;
//simulator.set_fuel_efficiency(double fuel_efficiency);
//cout <<"Enter your amount of fuel in gallons: " << endl;
//in >>
return 0;