I defined a structure and called the file for reading, but I am confused about how to store the information in the fscanf portion of the code.
typedef struct
{
int ranking;
char name[20];...
Type: Posts; User: QCMontrealQC
I defined a structure and called the file for reading, but I am confused about how to store the information in the fscanf portion of the code.
typedef struct
{
int ranking;
char name[20];...
I need to store information from a file that contains stats of ten different countries, and store that information in an array of ten elements, where each element is a structure named data_t.
Once a file is read, how would you store the information into an array of nine elements where each element is a structure named data_t.