Hi! I am having a problem with my code, at line 22 and 24 when i try to assign a struct to another struct i get the error "undefined reference to ReadPoint()" can anyone lend some assistance here?
This function Coordinate ReadPoint();
is defined but never implemented. You implement another overload of the function called ReadPoint(), but not the one taking no arguments.
When you defined the ReadPoint function your arguments were double latitude, double longitude, and string name. When you called it in main, you only called ReadPoint(), with no arguments. Although your ReadPoint function has cin, it only calls cin after you call ReadPoint.
Try erasing the three arguments of ReadPoint. Create the latitude, longitude, and name variables locally, and see if that works. Also, remember to use Point.latitude, Point.longitude, and Point.name (not just latitude, longitude, and name) when inputting the information about Coordinate Point.
As well, in your main function, line 25, you should call your ComputeDistanceAndDirection function without the "void" in front, nor the variable type of the arguments (const Coordinate&...etc). Also I do not see a definition of this function...you must implement it before using it!