sulays said:
I posted what I have I just wanted to know what was wrong with it
because I can't see it being trying everything and stil not working
instead getting really confuse here with all the hints thanks anyway
one last try...
You have been given several items of advice by myself and other people
and seem incapable of following simple advice. Please read this post
carefully and try to follow the advice I give,
1. always leave some context. This means you quote the post (or parts
of it) you are replying to. By this time I have no idea what program
you
are talking about.
2. if posting code you have a problem with then post SHORT,
COMPLETE examples.The code should compile. You have consistently
ommitted important data structures and functions from your posts.
3. if your code is too long to post then post a shorter version that
illustrates your problem. For instance I suggested you write a simpler
program that built and printed a list. We would then know if you
understood the basics of linkedlists and were capable of writing a
simple program.
4. you posted code saying it had an infinite loop. I suggested you
added diagnostic code. I suggested a possible problem. Did this solve
your problem? If so why are you still posting?
5. the code you posted lacks comments and uses poor choices in the
selection of identifier names. I would give examples but you snipped
the context...
I begin to wonder if you have some of the desirable charcter traits
that will enable you to program successfully. You need to listen when
people explain things. You need to break complex problems into
simpler ones. You need to think clearly. You need to communicate
clearly. Learn these things and you will become a better person.
In a sense we should be grateful to you for illustrating in multiple
ways
why leaving context in your post is a good idea.