Ask your own question, for FREE!
Computer Science 9 Online
OpenStudy (anonymous):

what's wrong with this program I need to make each line in a file as an array of element !! #include //#define MAXLEN 256 int main() { FILE *myinptf1 = NULL; float string[3]; int i=0,n; float sum=0.0,max=0.0,min=101.0; myinptf1 = fopen("students.txt","r"); if(myinptf1 == NULL) { printf("Error"); return 1; } while(fscanf(myinptf1,"%f",sum)==1) { string[i]=sum; i++; } i=n; for (i=0;i

OpenStudy (anonymous):

missing the ending bracket to close the main method

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!