That was the purpose of my while loop initially.
Type: Posts; User: Jack23
That was the purpose of my while loop initially.
FILE* dataFile;
char name [60];
dataFile= fopen ("myfile.txt" , "r");
if (dataFile== NULL) perror ("Error opening file");
else {
if ( fgets (name , 60 , dataFile) !=...
Yeah, I remember that command now. I don't feel to comfortable implementing it into my program. As for the loop, so should it be two for loops.?
...
int i = 0,count = 0; //intitializing counting variable
...
Is this better?
typedef struct {char fName[60];
char lName[60];
float test[3]; /* 3 tests */
float avg;
} student_t ;
...
I'm pretty new to C but so far I have been pretty OK when it comes to implementing programs. I have been working with this program for about a week now, and I'm just about finished with it. The...