I have to read columns from an excel file so that I could output a statistic of it. I figured that to do this, I have to create a struct
first. This is all I have so far.
#include <stdio.h>
#include <stdlib.h>
/* Structure to store all the data that is required */
typedef struct{
char* id;
int entryCount;
int like;
char gender[7];
} statistics;
The excel file is a list of facebook like count and member name, ID and gender. My question is, how can I use an if
statement to validate the data and find out if the like count belongs to the male
or female
gender?
Any help would be appreciated.
Edit: Made question clearer (I hope).