Download presentation
Presentation is loading. Please wait.
Published byAmos Lawson Modified over 9 years ago
1
Using Visual Studio C++ Express Ron Gross ron.gross@gmail.com A current copy of this can be found at http://tinyurl.com/2ucaro or this direct linkhttp://tinyurl.com/2ucarothis direct link Last Modified at 12/7/2015
2
Prerequisite Installed Visual Studio (see the separate installation guide on the course website)
3
Run Lola Run
5
Understanding Projects In this course, a Project or Solution is a set of files that will compile into a single executable (.exe) file. A project can contain multiple files compiled together. In this course, every project will contain only one.c file (“ex.c”). Projects are mandatory even when they contain only one file.
6
Creating A Project
7
Project Options
8
More Project Options
9
Clean Up
10
Adding A File
11
File Options Note the “.c” extension
12
Common Error Solutions: –Find and delete the file on disk –Add Existing Item
13
Even More Options
16
Debug/Release Don’t play with this, options are different for Debug/Release
17
Entering A Program
18
Auto-Completion Activated by CTRL-Space
19
Compiling / Building
20
Build Errors
22
Build Warnings
23
Running
24
Basic Debugging Step Over (F10) – execute a line Step Into (F11) – enter a function Step Out (Shift-F11) – exit a function Continue (Start Debugging) – F5
25
Debugging Over the Edge The compiler warns you when you try to debug “after the end of the program”. Just press OK and F5 to finish the run.
26
Advanced Debugging Add/Remove Break Point – F9 Edit & Continue – allows modification while the program is running.
27
Watches Manual Value Modification Locals
28
Opening Existing Solutions We open solutions (“foo.sln”) and not the C files directly. Either double-click from Explorer or File Open Project/Solution
29
A Ready Made Solution http://www.cs.technion.ac.il/~rgross/CS/te mplate.ziphttp://www.cs.technion.ac.il/~rgross/CS/te mplate.zip Copy into a fresh folder Rename all “template” to whatever you want: –In File Names –In File Contents
30
Questions ?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.