AP Computer Science Workshop
AP Computer Science C++ Classes
- apstring - substitute for C++ strings
- provides length member function
- does not require knowledge of special '\0' termination character
- input operator (>>) automatically creates strings of the right size
- allows straight-forward string assignment (from apstrings and C++ string constants)
- allows straight-forward string comparison using ==
- supports string concatenation (+ and += operators)
- can index as an array (s[i]) like C/C++ strings
- provides find and substr member functions
- The Palindrome Program
- Examples using apstring
- apvector - substitute for C++ arrays
- supports dynamic resizing using resize member function
- provides bounds checking on indexing
- provides length member function
- Finding the Mode
- Examples using apvector
- apmatrix
- provides a useful two-dimensional array data structure
- like apvector, supports dynamic resizing and bounds checking
- Examples using apmatrix
- apstack and apqueue
- provide class stack and queue data structures
- Examples using apstack and apqueue
- Downloading The AP CS C++ Classes
- Quick References (available during the exam) - DRAFT
Alyce Brady, Kalamazoo College