for some reason the following code returns error "a function-definition is not allowed here before '{' token" all the time, cannot seem to figure out why, sorry, i am noob.
So now i have managed to get to here. The bold is where i get stuck. Obviously i am not understanding how to point to a specific CityState via pointers. What i want to do is check each struct if the bool is true, and if yes move on, else i will perform an operation on the struct. But not sure how to accomplish this.....
So do you mean like this?
not quite sure what you mean above, very very confused person here.
have read through the bit about pointers on here a few times, but not getting it at all.
1 2 3 4 5 6 7
for(i=0;i<20;i++)
{
pointCS=&question[i];
test=pointCS;
// cout << "the value of i is " << i << endl;
}