Originally Posted by
kitymarine
Even I dont know how to use that safer_gets ..no definition of that one!
As I said, find out more about this later. Focus on getting one thing to work the way you want it tonight. Then you should be able to apply this to any strange function you meet. (That is programming - none of us know all the functions, but the trick is understanding how they work so you can sufficiently use any that you meet).
I went through the code, I think I see your problem.
You have one loop in your program, which collects data. I think you're trying to force two things to happen at once. (Taking input and printing output.)
You need to break it into two separate loops - one to collect the data, and then a second to print it all. They are two separate tasks, and should be approached so. You're not supposed to print out the data as you receive it - you're supposed to store it until you're finished taking input and then print it out afterwards.
Code:
LOOP_1
{
// Gather user input, and store to the structure array, just like you've been doing.
}
LOOP_2
{
// Now print out the the information you took from the input and stored
// into the structure array
}
If you're tired, take a rest. Don't cram it all in at once, you won't learn effectively that way.