Lecture 7: Arrays continued, again, and makefiles
Sorting arrays
We use selection sort in this video. Feel free to try another sorting algorithm in program 1 if you like!
Optional reading: 7.6
Makefiles
Key ideas:
- makefiles organize dependencies
- as programs get larger, it is easier to organize them into multiple files
- In vim, you can use
tabe
to open up multiple files at once
Additional resources:
- https://makefiletutorial.com/ if you’d like a more in-depth tutorial beyond what was covered in lecture