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.