Code Examples
  Home arrow Code Examples arrow SatView: Pointer Perfect, Part 1
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
CODE EXAMPLES

SatView: Pointer Perfect, Part 1
By: J. Nakamura
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2004-11-29

    Table of Contents:
  • SatView: Pointer Perfect, Part 1
  • Operations on pointers
  • The pointer-to-member operator
  • Pointer casting
  • Dynamic_cast

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th -1:00PM EST. Register Today!

    SatView: Pointer Perfect, Part 1


    (Page 1 of 5 )

    If you code in C++, you will run into pointers sooner or later. They can be a great tool when implementing design patterns and building complex data structures. In this first of a series of articles about pointers, J. Nakamura introduces several operations that can be performed on pointers.

    When you are coding in C++, you are bound to run into pointers; we are not going to discuss here whether they are good or bad, rather how we can make good use of them. Don’t worry, even if you are well versed in C++, you might still find some interesting points in this article.

    Pointers can be used to strengthen your understanding of computer memory and its management. They become an invaluable tool when implementing design patterns and building complex data structures. You can delay the construction of an object by using pointers, implement your own memory management if you work with a lot of fragmented data, and build powerful abstract interfaces utilizing polymorphism and function pointers.

    This is the first in a series of articles that will introduce you to the implementation of some useful patterns. In order to make good use of them, a solid understanding of pointers is a prerequisite. At the end you will have built an application in C++ that downloads and displays the latest weather satellite images of Europe from the Internet. My goal, however, is to provide you with some essential building blocks that will help you implement these useful design patterns as reusable classes.

    If you encounter a topic touched in this article which you would like to see explained in more depth, please don’t hesitate to contact me.

    So what is a pointer? Simple: pointers are variables that store addresses and can be null. How hard can it be or get? Read on to find out.

    More Code Examples Articles
    More By J. Nakamura


     

    CODE EXAMPLES ARTICLES

    - Handling Animations and Bitmaps Using GDI+ f...
    - Download a Web Page using the WebClient
    - Creating a Chart using Data from a Database ...
    - The Basics of Charting with the MS Chart Con...
    - Searching Body Text with textRange: Enter th...
    - Searching Body Text with textRange: Building...
    - Searching Body Text with textRange, part 1: ...
    - First Steps in Programming
    - Programming in C
    - Quick Introduction to ASF,ASX, and Networkin...
    - SatView: Pointer Perfect, Part 2: Constructi...
    - SatView: Pointer Perfect, Part 1
    - Style Case Studies: Construction Unions
    - Creating an Engine for Games for Windows
    - Style Case Studies: Generic Callbacks





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway