Patterns: Working with Arrays
Patterns: Working with Arrays
Steven Zeil
Old Dominion University, Dept. of Computer Science
Copyright © 2011 Old Dominion University
Table of Contents
1. Static & Dynamic Allocation
1.1. Static Allocation
1.2. Dynamic Allocation
1.3. Arrays and Pointers
1.4. Arrays and Pointers (2)
1.5. Arrays and Pointers (3)
2. Patterns
2.1. Adding Elements
2.2. Searching for Elements
2.3. Removing Elements
2.4. Building an Array "Library"
2.5. Vectors - the Un-Array
2.6. Accessing Elements in a Vector
2.7. Size of a Vector
2.8. Adding to a Vector
2.9. Add in Order to Vector
2.10. Advantages of Vectors
2.11. Disadvantages of Vectors
2.12. Multi-Dimension Arrays
2.13. Arrays of Arrays