Hello everyone! I'm trying to make a program with multiple class inheration, but I get some really weird errors that I can't figure out how to solve. The program saves the location that is entered. The first class holds the continent and the country,the second holds the county and the city, and the third and last one holds the street and the streetnumber.
1>------ Build started: Project: Hello world, Configuration: Debug Win32 ------
1> main.cpp
1>c:\users\demo\documents\visual studio 2010\projects\hello world\hello world\main.cpp(8): error C2628: 'city_location' followed by 'int' is illegal (did you forget a ';'?)
1>c:\users\demo\documents\visual studio 2010\projects\hello world\hello world\main.cpp(9): error C3874: return type of 'main' should be 'int' instead of 'city_location'
1>c:\users\demo\documents\visual studio 2010\projects\hello world\hello world\main.cpp(12): error C2664: 'city_location::city_location(const city_location &)' : cannot convert parameter 1 from 'int' to 'const city_location &'
1> Reason: cannot convert from 'int' to 'const city_location'
1> No constructor could take the source type, or constructor overload resolution was ambiguous
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It got to be something with city_location.h, since if I remove it and just use world_location.h and country_location.h, everything works fine. I also think there is something wrong with city_location.h's contructor. All help would be greatly appreciated!