Compiled it, ran it, after no outout to screen for 30 seconds, hit CTL-C.
C:\Temp>testxxx
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Then I realized you have no cout comments before cin to tell the user what type data to type.
so I add some couts and run it again, and hit a endless loop after
std::cin >> numBlocks;
because you don't check the intput to verify it's numeric.
reread your post and you said the user is using a file.
Well Of course your going to have runtime issues if you dont' know the format of the file, and you don't check the input to see if it's a number or text.
I also can't debug it since I'm not the one entering the input. |
That's a bunch of BS, of course you can track it down, create a file and copy and paste the new page from yahoo. Start fixing your code instead of making excuses.