Project to gauge my current programming ability, originally from a C++ course on udemy.
there's a few examples of bad code that i'd probably clean up if i wanted to do this for real
- bad if statements
- unnecessary use of
typedef structover regular structs. - potential memory problems with using stdlib functions.
- a few hardcoded strings that could've been better in a struct somewhere.
- Clearer function code that can maybe use
returninstead of manually calling it every time. - probably some other stuff i missed, i'm sure you'll let me know wink .
clone the directory and run gcc main.c;clear;./a.out
don't ask me how to compile on windows.