Using Visual Studio 2008 for C++ Programming: A Step-by-Step Guide - Prof. Linda P. Duhadw, Study notes of Computer Science

Instructions on how to use visual studio 2008 for coding c++ programs, including downloading the software, starting a new project, adding a file, compiling and running the code, and resubmitting an assignment. It also includes examples of c++ programs.

Typology: Study notes

Pre 2010

Uploaded on 07/30/2009

koofers-user-efx
koofers-user-efx ๐Ÿ‡บ๐Ÿ‡ธ

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
6/9/2009
1
Where to code
๎˜What tool do you use for
๎˜an essay paper
๎˜numbers and formulas
๎˜For writing code we will use an Integrated
Development Environment (IDE)
Integrated Development
Environment
๎˜plain text editor
๎˜compiler
๎˜debugger
๎˜syntax highlighting
๎˜etc.
Visual Studio 2008
๎˜http://cs.usu.edu/htm/elms
๎˜free download to students currently in a CS class
๎˜Your account is your email address
๎˜For questions contact [email protected]
๎˜Not for commercial use
Visual C++ Express Edition
๎˜Free to all
๎˜http://www.microsoft.com/express/download/#we
bInstall
๎˜Must also download service pack 1, and the SDK
๎˜Possibly make some configuration changes
Available on Campus
๎˜Visual Studio is available on many of the open
access computer labs
๎˜http://www.usu.edu/computerlabs/
Starting a new project
๎˜Select
File
New
Project
Visual C++
Win 32
Win 32 Console Application
๎˜Give the project a name
๎˜Pick the location (this is important so you can find it
later
pf3

Partial preview of the text

Download Using Visual Studio 2008 for C++ Programming: A Step-by-Step Guide - Prof. Linda P. Duhadw and more Study notes Computer Science in PDF only on Docsity!

Where to code

 What tool do you use for  an essay paper  numbers and formulas

 For writing code we will use an Integrated Development Environment (IDE)

Integrated Development

Environment

 plain text editor  compiler  debugger  syntax highlighting  etc.

Visual Studio 2008

 http://cs.usu.edu/htm/elms

 free download to students currently in a CS class

 Your account is your email address

 For questions contact [email protected]

 Not for commercial use

Visual C++ Express Edition

 Free to all  http://www.microsoft.com/express/download/#we bInstall  Must also download service pack 1, and the SDK  Possibly make some configuration changes

Available on Campus

 Visual Studio is available on many of the open access computer labs  http://www.usu.edu/computerlabs/

Starting a new project

 Select File New Project Visual C++ Win 32 Win 32 Console Application  Give the project a name  Pick the location (this is important so you can find it later

Starting a new project

 Click OK

 Select Application Settings

 Make sure the console application button is selected

 Check the empty project check box

 Click Finish

(If you get this step wrong โ€“ start over)

Adding a File

 Select Project Add new item Visual C++ Code C++ file (.cpp)  Give the file a name  Do NOT change the location  Click add

Type in your source code

#include using namespace std;

int main(){ cout<<"Hello World"<<endl; return 0; }

Step 6: Compile and Run

 Select Debug  Start Without Debugging

 Shortcut: Ctrl+F

Example

 Write a complete C++ program to produce the following kitchen order.  Define and use variables for the following given values:  Day  Year  Amount ordered of each item (amount only not name of item)

Example