I have to understand some C++ code. Everytime I start, I end up losing motivation when I don't understand anything. Please suggest me some of the best ways to quickly understand the code. I haven't worked on any C++ programs before.
Use NetBeans IDE to see call graph, who calls a function and which functions a function calls. Or use "Understand C" to get the flow. Lack of understanding of code flow will lead to more problems because of your fix.
Marco Alka
Software Engineer, Technical Consultant & Mentor
Well, a lack of motivation is hard to compensate. On top of that, C++ uses an extended C syntax. Many languages base on that kind of syntax, so it shouldn't be too hard to just read and understand it.
If you tell us, which language(s) you know, we might be able to compare them, so that you have some kind of reference...