#include "header.h" //This program scans a vector from a file and then puts that vector into a structure in the form of Vector. Vector ReadVect() { Vector Vec; //declares Vec as a structure in the form of Vector int NumOfElem, i; if(scanf("%d", &NumOfElem)<=0) //the first scanned number should indicate the number of elements in the { Vec.n=-1; //if nothing can be scanned, then -1 is given to the value for Vec.n and the outside loop will exit. return Vec; } Vec.n = NumOfElem; //assigns the number of elements in the vector to Vec.n Vec.fp = (float *) calloc(NumOfElem,sizeof(float)); //assigned enough space for the vector to be scanned for(i=0;i