Tuesday, June 14, 2011

Re: [Cpp-Programming] Re: problem during runtime

If your requirements allow it, using gmp (http://gmplib.org/) would be the best solution.

Otherwise, I suggest you become very friendly with your debugger - seeing the values of each variable as each line of code is executed will tell you exactly where something isn't behaving as you expected it to.

The debugger in Visual Studio is built in; a tutorial can be found here (http://www.cprogramming.com/tutorial/debugging_concepts.html) - skim through parts 1 and 2, part 3 is the important part.
If you are using gcc, the debugger is called gdb, and is more difficult to use.  A tutorial can be found here (http://www.cs.cmu.edu/~gilpin/tutorial/).
Debugging in most other IDEs is similar to Visual Studio, though you may want to use google to find a tutorial for your specific IDE.

Good luck!

--
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com.
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en.

0 Comments:

Post a Comment

<< Home