I'm trying to acces the cityMethod() inside the class City.
class City
{
void cityMethod() { }
}
So, I do:
map<string,City> mymap;
City c;
mymap["Madrid"] = c;
Now, when I do this:
mymap["Madrid"].cityMethod();
Ok, it works. But the IDE(Qt) doesn't recognize the "cityMethod". Am I doing something wrong? Is that compiler issue?