#include #include #include #include #define MAXNUMLINES 10 /* max number of lines in a file */ #define MAXLINELEN 100 /* max line length */ #define MAXNAMELEN 20 /* max length of word on a line */ struct pair { char name[MAXNAMELEN]; int value; }; struct table { struct pair elements[MAXNUMLINES]; int elementCount; } pairs; void loadTable (char *fileName); void printTable ( ); int nextWord (char line [ ], int pos, char word [ ]); int main (int argc, char *argv[ ]) { loadTable (argv[1]); printTable ( ); return 0; }