In this member function of class transcation, I use the "distance" function from another cpp program and that function is also a member of class "GPS_DD". My code is like below:
double
Transaction::getDistance()
`{ return GPS_DD.distance(tr_src_where, tr_dst_where);}
This function calculates two locations' distance from source to destination.
Then I get the error message and I have no idea to apply this function.
This is the "distance" function from class "GPS_DD":
double
GPS_DD::distance(GPS_DD& another) {return GeoDataSource_distance(this->latitude, this->longtitude,
another.latitude, another.longtitude, 'M');
}
Regardless of the "GeoDataSource_distance, what code should be implemented in order to apply in the "getDistance" function?