Re: People, this is my second day with C.

Originally posted by Vber whats the problem with the code?
...
Hmm, so no one got an solution to the problem?

The problem is that no one here wants to read two hundred lines of code to pinpoint your problem. If you've done any programming before, you should be well versed with debugging.

Break your program down into small programs that test each function one at a time. Or sprinkle printf statements throughout your functions which display the values of the variables so you can debug by catching problems that way.