Scope Definition Local variables Global variables Arguments to a function The two strings the class (like in Java) Easy to use Has lots of convience functions Remember to 'using namespace std' and #include < the array of chars Each charactor is in ASCII Ends in a null byte Has wasted space at the end needed by many functions (including network and filename) often faster than the class (especially for customized functions) often faster than the class (with things like = ) Pointers A pointer is an address in RAM. Everything has an address, and therefore can be pointed at. Arrays Array elements Variables Functions Classes Everything A pointer has a pointee. IT IS WRONG TO POINT TO FREE'D RAM!! Operators Allocating RAM new malloc declaring a variable allocating an array Freeing RAM delete free leaving a variable's scope leaving an array's scope Taking the address of Getting the value of the pointee (the address) Moving to the next item in an array IT IS WRONG TO POINT TO FREE'D RAM!! Example String functions Erase the string Find the length Find the highest letter Capitalize the string Is the string a digit? Double the string Reverse the string 143 1 hundred 4 tens 3 ones 1010 1 eights 0 fours 1 two 0 ones 121 in base 3 1 nine 2 threes 1 one 10101 in base 2 1 sixteen 0 eights 1 four 0 twos 1 one