CMPSC 16 Lecture Notes - Lecture 14: C String Handling, Newline, Include Directive

32 views4 pages
16 Nov 2016
School
Course
Professor

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents