CMPSC 16 Lecture Notes - Lecture 14: C String Handling, Newline, Include Directive
Document Summary
Compiling separate c++ files and strings & vectors. Novice c++ programming: all in one . cpp source code file, all function definitions plus the main() program. Actual c++ programming separates parts: usually one or more header files with file names ending in . h that typically contain function prototypes, one or more files that contain function definitions. Some parts of the program are generic enough that we can reuse them. Reuse is not necessarily just in one program. Can contain sets of functions or sets of classes (or both) A library is a module that is an already-compiled form. Good idea to break up a project into multiple pieces if there are multiple people working on it, so everyone can work on their files. When you make a change, you only have to recompile that changed parts. Easier to debug a portion of a program than the entire program.