From the course: C++ IDE Overview

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Debugging

Debugging

From the course: C++ IDE Overview

Start my 1-month free trial

Debugging

- [Presenter] Let's check out Visual Studio's debugging tools. If you still have a project open, please close it. Go File, Close Solution. Now let's create a new one. File, New, Project, Visual C++, Windows Console Application. Come down here. We're going to name it temperature. Now say OK. Now we're going to bring up the exercise files. We're going to go into temperature, going to say Open, Open with, say Notepad. We're going to do a Control + A, Control + C, go back, and we're going to just do a Control + A and select part of the text, everything below the stdafx.h file, and do a Control + V. Now we have all this. This app tells us how different Fahrenheit temperatures feel. The user enters a temperature, and the program will give a text response. So now we're going to do a click, Start Without Debugging. It'll ask us for a temperature. We're going to say zero for zero degrees. It is freezing, that makes sense. Let's run it again. Start Without Debugging. Type in 40 degrees. It says…

Contents