At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.

the following data points refers to three dimensional co-ordinates (x, y, and z axes, respectively) in each line. the numbers are separated by a tab space. save this data in an input file named data.dat.

Sagot :

struct point

{

int x;

int y;

int z;

double distance;

};

What is the definition of function to read data from file ?

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