Anyone Could Help C Program Says Instance Constructor Car Car Matches Argument List Im Try Q37255527

If anyone could help me with this C++ program. It says noinstance of constructor Car::Car matches the argument list. Imtrying to calculate the cost based on the users selection.

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <cstdlib>

using namespace std;

class Car
{
private:
   string First_Name;

   string Date_of_Birth;

   string state;

   float totalHonda;

   float totalNissan;

   float totalFord;

   float totalChevrolet;

   float totalDodge;

   double fees;

public:
   Car();
   Car(string, string, string, double);

   string getFirst_Name();
   string getDate_of_Birth();
   string getstate();
   double getfees();

};

Car::Car()
{
}

Car::Car(string N, string DB, string ST, double fe)
{
   First_Name = N;
   Date_of_Birth = DB;
   state = ST;
   fees = fe;

}

string Car::getFirst_Name()
{
   cout << “Please enter your name.n” <<endl;
   getline(cin, First_Name);

   return First_Name;

}

string Car::getDate_of_Birth()
{
  

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.