I am writing a code, using DEV C++ on Windows XP, that manipulates the positions of several elements within a certain area using arrays. The first part of the code asks the user to input some parameters and the second is the execution part. Now, there is no problem inputting the data but once execution starts Windows terminates the application with an error report. I have tried many times with it but the problem still exists. I don't know whats wrong.
Any help on this will be greatly appreciated....
Try running it in the debugger to see what it says. Because you are using arrays, I think that it is probably a segfault. Make sure you aren't accessing an array out of bounds anywhere.
I never used code lite before..is it better than DEV C++? do I need to modify my code to use it with code lite?
I really wish I could post my code but the limiting size here will never allow me to do it..
do I need to modify my code to use it with code lite?
I haven't heard of Code Lite, but anything you wrote in Dev C++ should work in Code::Blocks and probably Visual C++ with no change (or very small change).
Once you have a decent IDE, use a debugger to step through the program as Modshop says. Then you can see which line is causing your error.