Thread: Book on Pointers

  1. #1
    Unregistered
    Guest

    Book on Pointers

    I'm planning to buy a book that has a good explanation of pointers. The C Primer Plus looks lika a possibility. Does anyone have any other recommendations?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Pointers on C by Kenneth Reek.
    This book is on my highly highly recommended list, read it, learn it, live it

    -Prelude
    My best code is written with the delete key.

  3. #3
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    >Pointers on C
    [good, if inadvertent, pun]

    hmm C / C++ : the Complete Reference [by Herbert Schildt...] and also, if you've coincidentally taken calculus... derivatives/integrals has a likeness to referencing/dereferencing which has a likeness to recursion/unwinding and nesting and etc...
    hasafraggin shizigishin oppashigger...

  4. #4
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Pointers ain't that hard. Just try using a graphics library and you'll redefine "hard".

    example of pointers
    Code:
    int main(int argc,char *argv[])
    {
    	int a = 4;
    	int &b = a;
    	printf("a = %d, b = %d",a,b);
    	a++;
    	printf("\na = %d, b = %d",a,b);
    	b++;
    	printf("\na = %d, b = %d\n",a,b);
    	return 0;
    }
    output :
    a = 4, b = 4
    a = 5, b = 5
    a = 6, b = 6

    that's pretty much all there is too it....but then you have pointers to strings...which are pretty simple
    Last edited by Brian; 02-12-2002 at 02:14 AM.

  5. #5
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    The C Programming Language from Kernighan&Ritchie has also a very good chapter about pointers.

  6. #6
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Edit by Govtcheez: Now, now Brian, be nice. vVv, in case you were wondering, Brian was expressing his extreme displeasure at your statement.

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,665
    This is a pretty good explanation
    http://pw2.netcom.com/~tjensen/ptr/cpoint.htm

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help!!!!!
    By princssashes in forum C# Programming
    Replies: 2
    Last Post: 04-05-2006, 08:18 AM
  2. Question about book
    By Kaidao in forum C++ Programming
    Replies: 6
    Last Post: 03-20-2006, 03:31 AM
  3. new book about game programming using DirectX
    By Carlos in forum Game Programming
    Replies: 0
    Last Post: 09-20-2005, 08:30 AM
  4. ideas for my C++ book
    By Carlos in forum C++ Programming
    Replies: 41
    Last Post: 01-06-2004, 03:46 AM
  5. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM