Chapter 7: Pointers and References

 < Day Day Up > 



Learning Objectives

  • State the purpose and use of pointers and references in C++

  • State the definition of an object

  • Explain how to determine an object’s address using the & operator

  • Explain how to declare pointers using the pointer declarator *

  • Explain how to dereference a pointer using the * operator

  • Describe the concept of dynamic memory allocation

  • Explain how to dynamically create objects using the new operator

  • Explain how to destroy objects using the delete operator

  • Explain how to declare references using the reference declarator &

  • Explain why references must be defined at the point of declaration

  • Describe the benefits of using references vs. pointers

  • Utilize pointers and references to create powerful C++ programs



 < 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