For my project I'm using an array of structs that I declared in the header file
struct City{
string name;
int visits;
};
City* map[200];
now when I'm trying to initialize it in a constructor, like
for (int ii=0; ii<200; ii++)
map[ii].visits = 0;
I get an error:
left of '.visits' must have class/struct/union
Is that due to the map being a pointer? Anyone can point me in a right direction for solving this problem?