CIS 3100 Chapter Notes - Chapter 2: Integer Literal, Include Directive, String Literal

67 views3 pages

Document Summary

Reads ur program before it is compiled. Only executes those lines beginning w/ a # symbol. Namespaces to organize the names of program entities declares that program will be accessing entities whose names are part of snapace called std. Function can be thought of a s a group of one or more programming statements that collectively has a name. And the set of parentheses that follows the name indicate that it is a function. Warning : make sure you have closing brace for every opening brace! Group of characters inside quotation maersk is called string literal or string constant . Semicolon marks end of complete stmt in c++ return 0; This sends the integer value 0 back to the operating system upon the program"s completion. The value 0 usually indicates that a program executed successfully. Cout = stream object works w/ streams of data.