This task is designed to teach you how to create definitions and separate them from declarations.
Within this project, currently everything is defined within main.cpp - whilst this is OK for a tiny app, we're going to pretend that this is much larger since in those cases, you then want to separate your code into multiple files and you have to do that by having shared declarations and self-contained definitions.
After all, who wouldn't lose their sanity if an entire 100,000 line code base was in a single file?
- Compile the program as-is and see it working for yourself.
- Move the first 2 functions (not main!) into utility.cpp - try to compile, note the relationship between compiler errors and individual source files.
- Fix the errors in utility.cpp (hint: it's something to do with missing #include statements)
- Create declarations (NOT definitions) in utility.h that correspond to the definitions in utility.cpp (no, don't just copy-paste the entire functions)
- Try to compile and run it. If you did it right, you should be able to try out the program.
- Submit it to the GitHub Classroom assignment.