Answered You can hire a professional tutor to get the answer.

QUESTION

I make a simple program in c++ about car class in three files i did it according to the main that teacher give it to us but i have errors while...

I make a simple program in c++ about car class in three files i did it according to the main that teacher give it to us but i have errors while compiling it file1:car.h//--------------- CAR.H ---------------class Car{public:Car(string &make,string &model,int y=2001); //constructor with three prameters//constructor with two parameterstring GetMake();string GetMode();int GetYear();int GetSpeed();bool SetValue(string &make,string &model,int y); // set the fraction's value through parameters// display outputbool Accelerate(char c); // bool Brake(char c);private:string carmake;string carmodel ;int carspeed;int year;};file2:car.cpp//--------------- CAR.CPP ---------------// The class definition for CAR.#include <iostream>#include "car.h"using namespace std;#include<string>//--------constructors definitions------------------Car::Car(string &make,string &model,int y)//constructor with three prameters{

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question