15
LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

Embed Size (px)

Citation preview

Page 1: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

LAB#1CSC1101

1st semster 1431-1432 H

King Saud University College of Applied studies and Community ServiceCsc 1101

Page 2: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

Start Microsoft Visual Studio 2005

2

Start → All Programs → Microsoft Visual Studio 2005 → Microsoft Visual Studio 2005

Page 3: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

3

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.

Page 4: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

4

Initial MSVS Dialog

Here is an image of the initial MSVS Dialog.

Page 5: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

5

Opening a New Project

Open a project using File → New → Project…

Page 6: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

6

Choose a Visual C++ Win32 Project Type

Choose Win32 Console Application

Enter a name for your project.

Choose a Project Type and Name

Page 7: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

Project Settings

Choose Next > from the initial dialog.

Page 8: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

8

Project Settings (continued)

Be sure to select Empty project and Finish.

Page 9: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

9

Add a New Item

Right-click on Source File and Add a New Item.

Page 10: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

10

Create a main.c

Choose Visual C++ Code, C++ File named main.c.

Page 11: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

11

Enter your program into main.c

Enter a standard C program into main.c. You get to use your mouse, copy, paste, and everything!

Page 12: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

12

Start your program

Select Debug → Start without Debugging.

Page 13: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

13

Examine your output

Your program ran. Check it out!

Page 14: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101

14

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.