I'd bet that it happens due to an uncaught exception of type digits . Hint: there is something wrong at line #72.
[EDIT]
Isn't your compiler giving a warning of any kind, have you checked?
Note that I'm assuming that you are actually calling the string_to_int() function.
mitrmkar
Posting Virtuoso
1,809 posts since Nov 2007
Reputation Points: 1,105
Solved Threads: 395