struct point
{
int x;
int y;
int z;
double distance;
};
void readData(if stream & in, struct Point P[], int &n)
{
n=0;
while(!n.eof ())
{
in >> P[n].x>>P[n].y>>P[n].z;
n ++;
}
}
Learn more about Struct here: https://brainly.com/question/12959377
#SPJ4