since you only have an array of pointers, you'll need
to allocate memory for them through calls to malloc() else
they will cause segfaults when you try to write values into
what they point to initially.

> 
> char *p;
> strcpy(p, "I am a C programmer");
> 
> Since p is not pointing to anything yet, this will
> produce a segfault.
> Of course this is an over-simplified example, but I think
> your c++ code
> is hiding something this simple.
> 
> > My hunch is that things are breaking with my pointers.
> In particular I
> > have an array of pointers to "class card". I use
> pointers instead of
> > simply "class card"s so that I can subsequently change
> any element by
> > deleting it then creating a new card.


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. 
http://im.yahoo.com
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to