Results 1 to 3 of 3

Thread: Pointer(s)

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    Pointer(s)

    Before i read into pointer basically what are they? what can i do with them? Thanks
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Pointers are variables that store the memory address of other variables. You can use them to manage dynamically allocated memory, pass object by reference, traverse arrays and do weird optimizations that you can't understand anymore 10 minutes later.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    In C++, there are also references that are simplified version of pointers.

    References:
    Code:
    int e = 3;
    int &m = e;
    
    m = 4;
    Pointers:
    Code:
    int e = 3;
    int* m = &e;
    *m = 4;
    VS.NET 2003

    Need to email me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width