So my compiler is complaining about my destination.travelTime having 3 arguments although it should have 3 arguments, any suggestions on how to fix this or am I in the wrong? TIA
#include <iostream>
using namespace std;
struct timeType
{
int hr;
double min;
int sec;
};
struct tourType
{
string cityName;
int distance;
timeType travelTime;
};
int main()
{
tourType destination;
destination.cityName = "Nottingham";
destination.distance = 130;
destination.travelTime (3, 15.0, 0);
return 0;
}