CMPSC 201 Chapter Notes - Chapter 2: Integer Literal, String Literal, Stephan Endlicher
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;