CMPSC 201 Chapter Notes - Chapter 2: Integer Literal, String Literal, Stephan Endlicher

66 views4 pages
School
Course

Document Summary

#preprocessor directive- preprocessor reads program and only executes those lines beginning with # output to be displayed on screen and input from the keyboard. Needs to be as a header namespace std= used to organize names in program entities. For ex this program uses the name std int main ()= The beginning of a function function: one or more programing statement collectively having a name. Name of this function: main, parenthesis indicates function int: integer. It sends integer value back to operating system after it is done executing main: the starting point of a program. {: opening brace everything in between opening and closing braces are parts of function main cout << programming is fun! ; Inside quotation everything is called string literal or string constant. Semicolon marks the end of a statement, not required for comments or preprocessor directives return 0;

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