Week 2 (Intro to C++) Flashcards
What is the std namespace
namespace for iostream
\a
alarm (beep)
When are semi colons to be used
At the end of complete statements
What does the return of the main function do?
sends integer value 0 when program executed successfully
{ }(name and description)`
Open and closing braces, Encloses a group of statements such as the contents of a function
What denotes the beginning of a function
() for argument followed by a {
what type of object is the cout object
stream object
What are constants
data items, values can not change
what is the << called
Steam insertion operator
What is the skeleton for definition / declaration:
dataType variableName(identifier) ;
What is the keyword for a boolean
bool
Syntax for an Assignment Statement
variableName = expression;
How do you not confuse double long with int long
add L to the end of the floating point number
What are Variables
storage locations in memory
What is the skeleton of a function
returnType functionName () { }
When does a preprocessor directive act?
Before you compile
what operator can determine size?
sizeof()
What is a return type
type of value function sends back when done executing