delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/10/02:57:18

Date: Thu, 10 Mar 1994 02:33:24 -0500
From: meetze AT charlie DOT ece DOT scarolina DOT edu (Murle C. Meetze III)
To: djgpp AT sun DOT soe DOT clarkson DOT edu

Thanks stephen for your input.  You were right I just got your message
after I figured out what the problem was.  I looked in the book in 
which we are using in my class where I got part of the code for some 
of the operations for the queue and in the same chapter it goes into
stacks.  I looked at the initialization function for the stack and found
my problem.  They go and create a typedef *QUEUE so that later on when 
I made a variable 
QUEUE Q;
I didn't realize that Q was a pointer to the struct typedefed by QUEUE.
I wasn't setting up any memory for the structure but just trying to
use the structure which was only a pointer which probalbly was pointing
to other memory my program didn't have access to or whatever.  

I want to thank everyone who has helped me with this problem especially
the people who said the stuff about symify.  This mailing list is the 
coolest thing for people working with C/C++ and gcc.
                                        Murle Cleveland Meetze III
                                        meetze AT charlie DOT ece DOT scarolina DOT edu

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019