Hi,
I want to know if I can use the structure pointer -> to access a structure that is in an array.
currently I am using this:
while (inFile.good()){
inFile.getline(cstring,80);
[B] (*points[size]).x = strtod(cstring,&pEnd);
(*points[size]).y = strtod(pEnd, NULL);[/B]
size++;
}
points is a pointer to an array of class Point.
how would you write this??
points->y; ??