1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
guidedTour.cpp: In constructor 'GuidedTour::GuidedTour(std::string, std::string, double, double, Date, double, std::string)':
guidedTour.cpp:4: error: expected primary-expression before 'id'
guidedTour.cpp:4: error: expected primary-expression before 'description'
guidedTour.cpp:4: error: expected primary-expression before 'double'
guidedTour.cpp:4: error: expected primary-expression before 'double'
// SOURCE
#include "guidedTour.h"
GuidedTour::GuidedTour(string id, string description, double fee, double numBookings, Date theDate,
double maxNoTourists, string tourGuide) : Tour(string id, string description, double fee, double numBookings)
{
this->id = id;
this->fee = fee;
this->numBookings = numBookings;
this->theDate = theDate;
this->maxNoTourists = maxNoTourists;
this->tourGuide = tourGuide;
}
| |