Hi, I have a problem with a program I am writing in C using the Dev-C++ compiler. One of my functions called crtTable seems to be getting stuck in an infinite loop. Whenever it is called in main the program just sits at it. All my code is too much to post here so here's a link to the .c file and the input file which are both required to compile.
project2.c : http://www.box.net/shared/4qbmika1k8
input.txt : http://www.box.net/shared/c1ao7j9zmf
There's a good amount of loops in crtTable and I'm not exactly sure what could be causing it. If you could take a look at it I would be very grateful.
Could try putting printf("debug(Number)"); in each loop to see which ones causing it.
Thanks I'm going to give that a try. But now after looking through everything I'm not even sure that it is getting stuck in a loop. That's what it looks like but I don't see anything wrong in the parameters of the for's and while's.
Ok I found the problem. Thanks for looking at it.