NONO () {/ * This function is used to open files, enter data, call functions, output data, and turn off files. * / File * rf, * wf; INT I, A, B; Long C;
Rf = fopen ("in1.dat", "r"); wf = fopen ("bc01.dat", "w"); for (i = 0; i <10; i ) {fscanf (rf, "% d ,% D ", & A, & B); FUN (A, B, & C); FPrintf (WF," A =% D, B =% D, C =% LD / N ", A, B, C);} Fclose (RF); Fclose (WF);