NSFCD

Generally Speaking => Power On => Topic started by: blue_slime on February 12, 2008, 08:32:34 PM

Title: Pointers... ugh
Post by: blue_slime on February 12, 2008, 08:32:34 PM
Since we're not allowed to use structs in this project I'm working on right now, I have to use pointers.  To be precise, the way it works out I need to use pointers to pointers to pointers to data.  o_O

My brain hurts.
Title: Re: Pointers... ugh
Post by: Super on February 12, 2008, 09:26:39 PM
Be sure to tell us how that works out for you.
Title: Re: Pointers... ugh
Post by: JMV on February 12, 2008, 09:27:41 PM
Pointers make things easier since if you delete one object you can just change where the pointer points to.
Title: Re: Pointers... ugh
Post by: Silverhawk79 on February 13, 2008, 05:59:34 AM
I'm glad I quit trying to learn to program. :x
Title: Re: Pointers... ugh
Post by: Zovistograt on February 13, 2008, 06:30:52 AM
don't you love when programming gets all crazy :D
Title: Re: Pointers... ugh
Post by: blue_slime on February 13, 2008, 09:11:22 AM
Quote from: JMV290 on February 12, 2008, 09:27:41 PM
Pointers make things easier since if you delete one object you can just change where the pointer points to.

Yeah, I have more control, but it's brain racking sometimes when I have to manage pointers that point to all sorts of places, like implementing a linked list.  It's a lot easier in Java since I don't have to take care of that. :P