In this live coding session, I implement a series of functions to demonstrate file stream interaction within C++. The concepts covered in this coding session include function decomposition, passing by reference, C++ vectors, file streams, and terminal input redirection. All errors encountered while live coding were definitely pre-planned for educational purposes 🙂
This lecture with a live implementation example was created for use within CS 251 at the University of Illinois Chicago.
00:00 - Welcome!
01:00 - Function Prototypes
01:50 - Input File Example
02:39 - acquireData Function
11:51 - outputVector Function
13:18 - Function Comments
14:59 - Const Reference and Reference Parameters
17:39 - Execution Example and Debugging
20:55 - unsigned integer comparing to size()
22:42 - searchVector Function
31:01 - Terminal Input Redirection
35:00 - Wrap Up