M3S1 Part 2 Flashcards
Their purpose is only to allow
the programmer to insert notes
or descriptions embedded
within the source code.
/* block comments */
All the elements of the standard C++ library are declared within
what is called a
namespace with the name std
using namespace std;
a special function in all C++ programs;
it is the function called when the program is run.
int main ()
is a semi color required at the end of int main()?
no
indicates the beginning of main’s function
definition
open brace
indicates the
end of main’s function
definition
closing brace
Everything between the braces
function’s body
defines what happens when main is called.
function’s body
All functions use braces to indicate the
beginning and end of their
definitions.
a simple or compound
expression that can actually produce
some effect.
statement
It is the meat of a program, specifying
its actual behavior.
Program statement
is a semicolon required in the end of a program statement?
yes
is a group
of two or more C++
statements enclosed in
braces.
A compound statement,
also called a block
This defines the exit status of the
process or application.
return 0;
It terminates main( )function and
causes it to return the value 0 to
the calling process.
return 0;