Errors generally fall into one of two categories: syntax errors, and semantic errors (logic errors).Ī syntax error occurs when you write a statement that is not valid according to the grammar of the C++ language. Put those two together, and there are a lot of ways to make mistakes. Programming can be challenging, and C++ is somewhat of a quirky language. If you have experience from debugging programs in another compiled programming language, much of this will be familiar to you. Therefore, we’ll spend a bit of time covering such topics, so that as the programs you write become more complex, your ability to diagnose and remedy issues advances at a similar pace. In this chapter, we’ll explore topics related to the finding and removal of bugs within our C++ programs, including learning how to use the integrated debugger that is part of our IDE.Īlthough debugging tools and techniques aren’t part of the C++ standard, learning to find and remove bugs in the programs you write is an extremely important part of being a successful programmer. It’s easy to make them, and it’s hard to find them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |