I am trying to write a method that opens 2 documents, and creates a contraction amount from the data written in the documents is. However, me Exe got the error stopped working, and this is a common thing I did not understand the way to solve the problem
Here is my code:
zero conversions ( Four filename 1 [], four filename 2 []) {FILE * filepointer1; File * file line 2; Int counter = 0; Float xf; Setbuf (stdout, zero); Int oops = 0; Filepointer1 = fopen (filename 1, "r"); If (filepointer1! = NULL) {While fscanf (filepointer1, "% f", & amp; xf) == 1) {// 1 Finder for Counter ++; } Fclose (filepointer1); } Other {printf ("Error reading% s \ n", fileName1); } Int size1 = counter; // second data filepointer2 = fopen (filename 2, "r"); Counter = 0; If (filepointer2! = NULL) {while (fscanf (filepointer2, "% f", & amp; xf) == 1) {// 2 shape finder for counter ++; } Fclose (filepointer2); } Other {printf ("Error reading% s \ n", fileName2); } Int size2 = counter; Integer maximum size = size 1 + size 2-1; // array composition float holder 2 [max]; Int i = 0; For (i = size 2; i & lt; max -1; i ++) {// zero holder 2 [i] = 0.0 fill with; Float Holder 1 [Max]; Int x = 0; Fill with {// zero holder 1 [x] = 0.0 for x = size 1; x
}
No comments:
Post a Comment