CSCI 230 Computing-I Welcome to CSCI 230! Compiling Your First Program Using Microsoft Visual Studio 2005
Download ReportTranscript CSCI 230 Computing-I Welcome to CSCI 230! Compiling Your First Program Using Microsoft Visual Studio 2005
CSCI 230 Computing-I Welcome to CSCI 230!
Compiling Your First Program Using Microsoft Visual Studio 2005 1
Objectives for the Lab Learn the difference between client-side and server-side programming Learn how to open an empty solution and project under Visual Studio .Net
Compile and run a simple program 2
Client-side vs Server-side compiling Environment setup Install MS VS .Net 2005 from iuware.iu.edu
Client-side compiling runs locally on your computer Requires installation of a compiler on your system Consumes local CPU and hard disk space No network (internet) connectivity required Service-side compiling runs remotely on a server Requires remote access software such as SSH available from iuware.iu.edu
Server is typically more powerful CPU and has more storage. Typically used for larger projects Easier to implement team development environment Normally uses a command line interface rather than graphical Network (internet) connectivity required Used for business applications that require production infrastructure (production monitoring, nightly backups, etc.) 3
Start Microsoft Visual Studio 2005 Start → All Programs → Microsoft Visual Studio 2005 → Microsoft Visual Studio 2005 4
Starting for the first time The first time you run MSVS, you might get a window like this.
Use General Development Settings if you have no preference.
5
Initial MSVS Dialog Here is an image of the initial MSVS Dialog.
6
Opening a New Project Open a project using File → New → Project… 7
Choose a Project Type and Name Choose a Visual C++ Win32 Project Type Choose Win32 Console Application Enter a name for your project.
8
Project Settings Choose Next > from the initial dialog.
Project Settings (continued) Be sure to select Empty project and Finish.
10
Add a New Item Right click on Source File and Add a New Item.
11
Create a main.c
Choose Visual C++ Code, C++ File named main.c.
12
Enter your program into main.c
Enter a standard C program into main.c. You get to use your mouse, copy, paste, and everything!
13
Start your program Select Debug → Start without Debugging.
14
Examine your output Your program ran. Check it out!
15
Congratulations!
You created a new Microsoft Visual Studio 2005 Project.
Selected Visual C++ Win32 Console Application.
Created your own main.c file, entering code just like in class.
And started your program to produce output/ All of this using an easy editor and never logging onto the internet.
16