Project 1 - Creation of user defined data type to implement the user interfaces for working with ‘Set’ (Mathematical Set theory)
Dear sir/madam,
I am very excited to present to Skill-Lync the code of my first project! I have taken a few creative liberties during development: I have implemented support for more than 2 but a maximum of 4 sets as well as file I/O for reading set values in from a .txt file within the same directory. I have also attached 4 sample set files for reference.
Please note that as with all my other recent submissions, I have used a custom directory structure for this project:
project1/Makefile
project1/src/set_1.txt
project1/src/set_2.txt
project1/src/set_3.txt
project1/src/set_4.txt
project1/src/set_practical.c
project1/src/set_practical.h
project1/set_ops/so_set_op_intersection.c
project1/set_ops/so_set_op_union.c
project1/set_funcs/sf_append_element.c
project1/set_funcs/sf_how_many_sets.c
project1/set_funcs/sf_set_create.c
project1/set_funcs/sf_set_destroy.c
project1/set_funcs/sf_set_print.c
project1/set_funcs/sf_set_search.c
project1/misc_funcs/mf_defaults.c
project1/misc_funcs/mf_get_input.c
project1/misc_funcs/mf_parse_args.c
project1/misc_funcs/mf_parse_array.c
project1/misc_funcs/mf_usage.c
The directory structure can also be gleaned from the root Makefile and set_practical.h. The launch options "-f" and "-h" are used for file input (example: "-f set_1.txt -f set_2.txt -f set_3.txt") and help (example: ./set_practical -h) respectively. The option "-n" does not prompt for a restart once the first batch of sets are done. The parser expects a filename immediately after every "-f", and a minimum of 2 sets are required.
I eagerly await your feedback,
Best regards,
Rahul Singh