I can't help you write the program, but first you need to know the preiquistics
you would need to create a dictionary class, maybe that stored the max/min latitude, max/min longitude and the place. When I say max/min I mean the 4 cordnites that form a square around the place... eg x = 0 y= 4,
x= 4 y=4
x=4 y=4
x=0 y=0
this forms a box if you were to draw it out on a graph aka latitude, longatude
the fact that you put google maps in the title means you probably want to to use google maps to find the place. I don't know whether google maps has a c/c++ library thqat can be used for this purpose
however I believe they have a javascript api. you might have to build a library by yourself. hopefully you will be making this for a specific area... if not you've got a lot of work
heres what the PLACE class might look like:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class Place
{
public:
Place findPlace(); //this function will take the latitude + longitude and loop through all the countries
void setLatitude(longint lat); //sets the latitude
void setLongitude(longintlong); // sets the longitude
protected:
longint latitude;
longint longitude;
};