Notes: Did not use doctest for testing. Made the unindent.cpp and indent.cpp their own executable files in the Makefile (./unindent and ./indent following lab instructions). Also, the way I programmed the indent was a bit awkward. The brackets that were not main() did not align to the other brackets.
- Fill in your name and GitHub username on top.
- Use the Notes section to add any notes to the instructor.
- The main lab description can be found here: https://maryash.github.io/135/labs/lab_07.html
For this lab, it is up to you how to structure and write everything
and as such this repo starts mostly empty. It includes doctest.h in
case you plan to use it for testing but for this lab doctest.h based
tests are not required.
Even though you will decide on what and how to implement your solution, the lab must include the following:
- There must be a
Makefilethat has at least the following targets:mainto build an executable namedmain.cleanwhich will get rid of.ofiles.- If you are using
doctest.hyou should have ateststarget but if you do not, you don’t need this target.
- You must include at least one poorly formatted C++ file to test your program on in the repository.
- Do not add/commit/push the “fixed” file that your program produces.
- If I need to know anything, please write it in the Notes: section above.