If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: C++ structure Unhandled exception

I will be blunt -- you shouldn't even consider writing any computer program unless you are ready to debug such a program. Debugging is part and parcel of learning how to write programs.

Your program consists of structs, for loops, functions, passing parameters, etc., so this is no beginner program. At this stage, it is hard to believe that no one has stressed the importance of debugging to you.

Re: C++ structure Unhandled exception

I will be blunt -- you shouldn't even consider writing any computer program unless you are ready to debug such a program. Debugging is part and parcel of learning how to write programs.

Your program consists of structs, for loops, functions, passing parameters, etc., so this is no beginner program. At this stage, it is hard to believe that no one has stressed the importance of debugging to you.

Regards,

Paul McKenzie

The Intro in c++ teacher I had wasn't a good teacher. I took this class around 2003 and I didn't really learn c++ much with this teacher. After I finished with this intro in c++ class I mostly tought my self c++. So now, I felt confident enough to take the advance c++ course. But this teacher never talked about debugging because he also expected me to know this. I'm sure I could easily learn debugging as I am this far in c++.

Re: C++ structure Unhandled exception

I'm sure I could easily learn debugging as I am this far in c++.

It isn't really an option. Writing C++ and debugging, while two separate things, really need to be viewed as the same entity. If you are going to write non-trivial programs, then you will have errors. To fix those errors you use the debugger. Using a debugger is not difficult at all. Basic concept is set a break point at the problem section of code, then single step through the code. In the meantime you can watch the values of variables. When these values differ from what you expect, then you know where the problem section of code lies (most likely).

Re: C++ structure Unhandled exception

Originally Posted by crazyben21

I'm sure I could easily learn debugging as I am this far in c++.

All languages, not only C++, requires that you know how to diagnose problems.

No one writes bug-free programs -- did you think that when we write programs, they are 100% flawless? Of course not. Ever see the "release notes" of your favorite software? Don't some of those entries contain information on bug fixes?

That's why debugging any program, not just C++ programs, is a requirement in learning how to program. It is such a major requirement that honestly, it not even be formally taught -- learning computer programming forces you to figure out problems when your program doesn't work correctly.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.