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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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


    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

    - Bipartite Graphs
    - Connectivity in Graphs
    - The Ford-Fulkerson Algorithm
    - Critical Paths
    - The Bellman-Ford and Roy-Floyd Algorithms
    - Shortest Path Algorithms in Graphs
    - Minimum Spanning Tree
    - Articulation Edges and Vertexes
    - Circles and Connectivity in Graphs
    - Depth-First Search in Graphs
    - Breadth-First Search in Graphs
    - The Prufer Code and the Floyd-Warshall Algor...
    - An Insight into Graphs
    - Coding a Custom Object with WSC
    - Creating a Custom Object with WSC





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek