Thread: wut is the point of pointers (no pun intended)

  1. #1
    Geo Geo Geo-Fry
    Join Date
    Feb 2003

    wut is the point of pointers (no pun intended)

    i dont understand y u would use pointers. im not dont know very much c++ (im on lesson 11 of a 35 lesson tutorial that continues to grow, cuz its updated weekly) but i dont see y anyone would use pointers. y not just change the data, or view it, or whatever directly, and not use pointers.
    "You can lead a man to Congress, but you can't make him think."
    "The Grand Old Duke of York
    -He had ten thousand men.
    -His case comes up next week."
    "Roses are red, violets are blue, I'm schizophrenic, and so am I."
    "A computer once beat me at chess, but it was no match for me at kick boxing."
    "More and more of our imports are coming from overseas."
    --George W. Bush
    "If it weren't for electricity, we'd all be wacthing TV by candlelight."
    --George W. Bush

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    >but i dont see y anyone would use pointers
    Then you haven't gone far enough yet. When you get to the level where pointers are useful, then you'll understand. But to answer your question, amongst other things pointers are used for simplicity, efficiency, and complex data structures.

    My best code is written with the delete key.

  3. #3
    I thought the same thing when I started pointers. But they are very useful on down the line. Pointers allow for lots of things.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using pointers to pointers
    By steve1_rm in forum C Programming
    Replies: 18
    Last Post: 05-29-2008, 05:59 AM
  2. fixed point / floating point
    By confuted in forum Game Programming
    Replies: 4
    Last Post: 08-13-2002, 01:25 PM
  3. point lies in circle?
    By cozman in forum Game Programming
    Replies: 3
    Last Post: 12-20-2001, 03:39 PM
  4. more with my 1st structure program
    By sballew in forum C Programming
    Replies: 42
    Last Post: 10-22-2001, 08:03 PM
Website Security Test