My code works and I'm looking to improve my coding skills regarding this area, as the time is limited during exam. Overly-complicated code can take too long, so I'd rather post some code for revision instead.
As for the counting illustration, I fill the array with memset(strc.name1,'0',20); to "clear" it, so basically looks for any fields that aren't "cleared."
Here's some of my code regarding reading information from file:
I think that's a correct way to do it, as whitespaces can't (or shouldn't) be read, when using arrays.
// I read the name and the surname to two arrays
// Since they are in the same line, separated by a whitespace
ifile >> strc.name1;
ifile >> strc.name2;