(:wikititle CPSC 219:)

I have separated my solution into multiple files. You were not required to do this for your assignment, so I have also copied and pasted all of the source code into one big file and put it here. You are not required to ever split your C code across multiple files, but if in the future you read other people's code, you are very likely to see this happen.

I have also been careful to free up memory when done with it, which (if you were careful to only allocate what you needed) was also not required for the assignment.


Compiling Instructions


To compile the solution from multiple files, you should download all the files below as well as this makefile to the same directory and type 'make' on the command line.


Parliament.c


(:source filename=Parliament.c lang=c tabwidth=4:) (:sourceend:)


DataList.h


(:source filename=DataList.h lang=c tabwidth=4:) (:sourceend:)


DataList.c


(:source filename=DataList.c lang=c tabwidth=4:) (:sourceend:)


StringList.h


(:source filename=StringList.h lang=c tabwidth=4:) (:sourceend:)


StringList.c


(:source filename=StringList.c lang=c tabwidth=4:) (:sourceend:)