Would you like to help learning C++?

Hi, this is Jane.

I am a engineering student, but I only used MATLAB before. Now I need to learn C++ language. Actually, I am trying to read C++ guide books and make a program by myself. Still, I feel difficult and the most difficult part was debugging.

If there is someone, please put me out of my misery..?
Hi Jane,

Yeah, all of my CS friends hate debugging. What IDE are you using? If you are a student, you can get a free DreamSpark Microsoft account and get Visual Studio 2013 Professional for free. Visual Studio is great for debugging. If you don't want to go through all that trouble, you could just write a bunch of print lines which print out all the variables' values at different points in the program.

Anyways, cplusplus.com is always here for you if you have specific errors in your programs.

Good luck,

Link to DreamSpark main page: https://www.dreamspark.com/ .

Also, the assert(expr) function from the cassert library is a good way to test variables that should be a certain value at a point in the program. See here: http://www.cplusplus.com/reference/cassert/?kw=cassert .

Did some research and apparently many programmers use GDB from GNU. Link: http://www.sourceware.org/gdb/ .
Last edited on
Just write perfect code and you will not have to worry about debugging :P
Start small and write simple programs. This way you should be able to desk check and figure out what is going on. usandfriends is right about assert, but you can also output 'stuff' where you think the bug may be so you can see the values.
All links collation is amazing. Keep it up for this great shearing.Thank you for sharing, i think this information are really helpful.
Topic archived. No new replies allowed.