Chapter 8: Arrays

 < Day Day Up > 



Learning Objectives

  • Describe the concept of an array

  • State the purpose and use of single- and multi-dimensional arrays

  • Describe how to declare and initialize single- and multi-dimensional arrays

  • Explain how the compiler uses the array’s declared type to calculate offset addresses into an array

  • Explain how to access array elements using array subscript notation and pointer notation

  • List and describe the similarities between an array name and a pointer

  • Explain how to use pointers to dynamically allocate memory for an array with the new[] operator

  • Explain how to release dynamically allocated array memory with the delete[] operator

  • Explain how to idiomatically process an array using a for loop

  • Explain how to process multi-dimensional arrays using nested for loops

  • Explain how strings are implemented in C++

  • Utilize single- and multi-dimensional arrays in your C++ programming projects



 < Day Day Up > 



C++ for Artists. The Art, Philosophy, and Science of Object-Oriented Programming
C++ For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504028
EAN: 2147483647
Year: 2003
Pages: 340
Authors: Rick Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net