MS Visual Studio.Net 2008 Tutorial

Similar documents
Appendix M: Introduction to Microsoft Visual C Express Edition

Getting Started with Visual Studio

TREX Set-Up Guide: Creating a TREX Executable File for Windows

Lab 4: Introduction to Programming

Installing and Using Dev-C++

Installing and Using Xcode

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005

Engr 123 Spring 2018 Notes on Visual Studio

Visual C++ Tutorial. For Introduction to Programming with C++ By Y. Daniel Liang

clicking on the on the New

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010

WRITING CONSOLE APPLICATIONS IN C

Welcome Application. Introduction to C++ Programming (Solutions) 2004 by Deitel & Associates, Inc. All Rights Reserved.

1) Log on to the computer using your PU net ID and password.

ecampus Submission Process

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003

Linux Tutorial #1. Introduction. Login to a remote Linux machine. Using vim to create and edit C++ programs

Carleton University Department of Systems and Computer Engineering SYSC Foundations of Imperative Programming - Winter 2012

BVA LLP Web Portal User Guide

Assignment Submission HOWTO

Opening Microsoft Visual Studio. On Microsoft Windows Vista and XP to open the visual studio do the following:

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Adding Your Files to Blackboard (i.e. Uploading Your Syllabus) Option A: Uploading Your File through an Item s Attach File Area

How to Attach the Syllabus and Course Schedule to a Content Item

I. Downloading Grades from the Grade Center

Tutorial - Exporting Models to Simulink

Click on the Start Icon. Click on All Programs

Week 1: Hello World! Muhao Chen

EECE.2160: ECE Application Programming Spring 2018 Programming Assignment #1: A Simple C Program Due Monday, 1/29/18, 11:59:59 PM

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking)

Installing and getting started with Visual Studio for C programming in Windows.

Introduction to Dropbox Management Add a Category Add a Folder Set Availability for Dropbox Folders Add Special Access...

Moving Materials from Blackboard to Moodle

Installation Guide ~ Visual Studio C Express Edition

Deitel Dive-Into Series: Dive-Into Cygwin and GNU C++

Our second exam is Thursday, November 10. Note that it will not be possible to get all the homework submissions graded before the exam.

Filename:QIM-DP-05-Approve Quality Reject and Set in Process Page 1 of 12

Creating Projects using Microsoft Visual Studio 2017

Blackboard 9 Instructor Manual

An Introduction to Blackboard

An Introduction to Blackboard for Students

AN 834: Developing for the Intel HLS Compiler with an IDE

8 MANAGING SHARED FOLDERS & DATA

COURSE FILES. BLACKBOARD TUTORIAL for INSTRUCTORS

Check the Desktop development with C++ in the install options. You may want to take 15 minutes to try the Hello World C++ tutorial:

Scientific Visualization A Programming Guide using Fltk and Visual Studio

Tips from the experts: How to waste a lot of time on this assignment

DOMAIN TECHNOLOGIES. Getting Started Guide Version 1.1. BoxView IDE. Integrated Development Environment

Deadline. Purpose. How to submit. Important notes. CS Homework 9. CS Homework 9 p :59 pm on Friday, April 7, 2017

Compiling MapleSim C-Code in Visual C Express

Importing a Text File into the Respondus Format

Instructions for MX350 Firmware Upload

Exporting a Course. This tutorial will explain how to export a course in Blackboard and the difference between exporting and archiving.

Submitting Assignments

CedCommerce. All rights reserved.

Multi-User Importing Instructions from an Existing ACT! Database

WORKING WITH YOUR PORTFOLIO

Developing Intelligent Apps

First Visual Basic Lab Paycheck-V1.0

Note: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit.

IBM WebSphere Java Batch Lab

Using OpenGL & GLUT in Visual Studio.NET 2003

Lab 2.1: Fixing a C++ program

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

To complete this project, you will need the following folder:

The installation provides enhancements to earlier systems and fixes reported errors.

Tips from the experts: How to waste a lot of time on this assignment

Table of contents. Zip Processor 3.0 DMXzone.com

Best Practices for Using Assignments and Submitting Assignments

Ephorus Blackboard Building Block Manual For Instructors

HOW TO SUBMIT A TENDER/Quotation

Highlight the s address (example: and go to the top of the page and click on Insert

CMPE110 - EXPERIMENT 1 * MICROSOFT VISUAL STUDIO AND C++ PROGRAMMING

ELEC 4200 Lab#0 Tutorial

User Guide to Mesquite s Citizen Access Portal (CAP) Planning and Zoning Division Uploading Documents for Review

COP4530 Data Structures, Algorithms and Generic Programming Recitation 3 Date: January 20 & 22, 2009

ScholarOne Manuscripts Author Guide

First C or C++ Lab Paycheck-V1.0 Using Microsoft Visual Studio

PART 1: Getting Started

REVIEWING AND MAINTAINING FILES IN YOUR COURSE S CONTENT COLLECTION

Superior University. Department of Electrical Engineering CS-115. Computing Fundamentals. Experiment No.1

CS31 Discussion 1E. Jie(Jay) Wang Week1 Sept. 30

Something we should know

Lab01: C++ Expressions ES036a: Programming Fundamentals Fall 2007

INFORMATICS LABORATORY WORK #2

Lab 1: First Steps in C++ - Eclipse

Sudoku-4: Logical Structure

Homework 09. Collecting Beepers

>>>>> Blackboard Faculty FAQ's <<<<<

Accessing Web Version of Life Illustrator

Introduction Add Item Add Folder Add External Link Add Course Link Add Test Add Selection Text Editing...

Styles and Conditional Features. Version: 7.3

How to Submit Settlement Inquiry Remedy Tickets

New World ERP-eSuite

CSE100 Principles of Programming with C++

Once file and folders are added to your Module Content area you will need to link to them using the Item tool.

Advanced Tutorial. Separation Handling. Sample. This tutorial is only a preview of the full advanced tutorial.

Educational Technology York College / CUNY

Required Setup for 32-bit Applications

Transcription:

1. Start Visual Studio as follows: MS Visual Studio.Net 2008 Tutorial 2. Once you have started Visual Studio you should see a screen similar to the following image:

3. Click the menu item File New Project... or press CTRL+SHIFT+N or click the Create Project link. A dialog box is displayed. In the left pane expand the selection named Visual C++ Projects and then select Win32. In the right pane, select Win32 Console Application. In the Name: text box type lab1in. In the Location: text box, type c:\temp Make sure Create directory for solution is not checked Your dialog box should appear as follows:

Press OK and you should see the following window:

Click the link on Applications Settings and you should see the following: Check Empty Project and the dialog window should now look as follows (next page):

Press Finish and your screen should look as follows: Close out the Start Page and the main window should look as follows:

Add a new item (e.g., source file) as follows (Right Click on lab1in): Upon selecting Add->New Item, your screen should now look as follows:

Select C++ File (.cpp) It should be automatically selected for you. Enter the following for the Name field (lab1inp1.cpp) while the Location field is automatically generated for you: Press Add and your screen should look as follows:

Enter C++ source codes: In the large window provided, enter your C++ source code. Sample Code: //Joe Smith (Replace with your name) //lab1inp1 (This is your assignment number) //Displays your name, address, city, state and zip code #include<iostream> using namespace std; int main() { //Display the name, address, city-state-zip cout << "Joe Smith\n" << "1215 Main\n" << "Conway Ar, 72035\n"; } return 0; Build the Program (read this part carefully!!!): After you have completely entered your program, you must build it using Build->Build Solution as shown below. The output window at the bottom of the screen will show the program compiling, linking, and any errors if the code is incorrect. If the program is correct, you can go ahead to run a program. If there are errors in the program, you must debug (fix) the code and try building the program again. If you receive the message: There were build errors. Continue?, always select the No button. You must keep debugging and building the program until it is correct. EVERY TIME YOUR RUN YOUR PROGRAM, IT IS AUTOMATICALLY SAVED TO THE LOCATION: C:\temp\lab1in

If you have no syntax errors the following messages (indicating Success) will be displayed:

Suppose you did not enter your program correctly (i.e., you have syntax errors). An example of this program (lab1inp1) containing syntax errors is shown below: The above program is missing a ; on the last statement. Double click on the error and the general region of where the error occurs is highlighted in blue. Note the error messages provided. You must correct all errors before you can build your program successfully.

Running your Program To run your program (without debugging) use Debug->Start without Debugging as shown below: The following window will be displayed when running your program:

Work on another program When you are done with one program and want to write another program, close the visual studio.net 2008. And repeat the above procedure by using different project name and C++ file name. These names are given by you and should be meaningful. For example, project name for the 2 nd program can be lab1in2, and its C++ source code file s name can be lab1inp2.cpp. Opening an Existing Project 1) To open a project you have already created, select File from the menu bar, then Open, and then Project. 2) Find your existing project in the temp folder. Double click on the yellow folder to open it. 3) Double click on the desired project name with the.sln file extension. 4) In the Solution Explorer window, double click on your.cpp file. Your source code should appear in the editing window. 5) NOTE: A.cpp file will not run unless it is opened in a Project. You must add your.cpp file to a project or copy and paste your source code into a project.

Submitting work via Blackboard When you are finished with the assignments, then you must submit your files via Blackboard. This is the only method in which your lab assignments will be accepted. They must be submitted on time. If you miss the deadline, your option to submit your work is gone. DO NOT WAIT UNTIL THE LAST MINUTE TO SUBMIT. You must submit all files at the same time. Blackboard only allows one submission per assignment, so all files must be submitted at the same time. 1) In the current lab assignment in Blackboard, scroll to 2. Assignment Submission. 2) Select Browse My Computer. Find all of your.cpp assignment files on the storage device you saved it on. (They should be in the temp folder on the C drive and then in the folder that you named your project. Two folders you used: lab1in1 and lab1in2 Make sure you only select the.cpp files). Select all files to be submitted (lab1inp2.cpp and lab1inp2.cpp). 3) When finished uploading all files to be submitted, select Submit. 4) It is highly advised to backup all of your work. You can copy these files from the temp folder on the C drive to some storage media using Windows Explorer. If you do not know how to do this, ask the lab assistant or me for help. 5) Always delete your files off of the computer you were using. All parties turning in duplicated code will be dismissed from the course and receive an F. (See syllabus.) You can delete your files (in the temp folder on the C drive) using Windows Explorer. Always log off the computer you were using so no one else has access to your account.