K so I managed to successfully get all the data I wanted into the structure
int getData (FILE* fpData, STU* pData)
{
// Local Definitions
int ioResult;
char temp[MAX_SIZE];
...
Type: Posts; User: jeanermand
K so I managed to successfully get all the data I wanted into the structure
int getData (FILE* fpData, STU* pData)
{
// Local Definitions
int ioResult;
char temp[MAX_SIZE];
...
MAX_SIZE is initialized to 1000..
I know I need to make some more changes because I also need to dynamically allocate memory for the names before I initialize them
So here's how I've implemented it thus far:
int getData (FILE* fpData, STU* pData)
{
// Local Definitions
int ioResult;
char temp[MAX_SIZE];
// Statements
The data from the text file looks like:
40T Trapp, Dave; 3.9
pin# Last_Name, First_Name; gpa
I am trying to read them into a linked list composed of the structure:
typedef struct
{
...