danger of making a function call it's self
recursion
_________________
Swap function, to trade the value of two
variables
__________________
compiling with g++ in linux
__________________________
global variables - can not trust them, do not use
them
global constants - can not be changed so you can
trust them
describe checks assignment
___________________
debugging (aka. stepping through) a c++ program
in visual studio using F10 and F11
___________________
Steil variable and function name rules
- use
camel case for variables (averageDailyBalance)
- use
uppercase letters with underscores for constants
(DAYS_IN_A_WEEK)
- name
void functions with verbs or verb noun combinations that describe
what the function does
- name
non-void functions with nouns that describe the value being
returned
__________________
type cast - sometimes used to avoid compiler
warnings
__________________
Namespaces
unary scope resolution operator to get gloabl
scope ::x
binary scope resolution operator to get to named
scope std:::endl
using namespace std; //poluting global
namespace
using std::cout;
__________________
Examples
Assign
Homework
Read Chapter 5 sections 11 - 14