View Single Post
Old Apr 25, 2004 | 05:47 PM
  #1  
axemansean's Avatar
axemansean
Senior Member
 
Joined: Jun 2002
Posts: 13,634
Likes: 0
Default C programming qs

Can anyone figure this out?

Got a structure:

string
int
int

I am creating a queue and passing the values for string, int and int to it. Whenever I print the queue I keep getting the same string even though I get the correct values for the 2 ints. What I mean is instead of getting:

x 1 1
y 2 2
z 3 3

I get:

x 1 1
x 2 2
x 3 3

I know its getting the correct values on the string because I am doing a print. And I know the pointer is going to the next line because the 2 ints are changing as they should.
Reply