![Page 1: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/1.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/2.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/3.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/4.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/5.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/6.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/7.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/8.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/9.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/10.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/11.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/12.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/13.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/14.jpg)
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.
![Page 15: LAB#1 CSC1101 1 st semster 1431-1432 H King Saud University College of Applied studies and Community Service Csc 1101](https://reader036.vdocument.in/reader036/viewer/2022062500/5697bf791a28abf838c82467/html5/thumbnails/15.jpg)
Reference
http://www.cs.iupui.edu/~cs230/fall07/labs/lab01CompilingUnderMSVS.ppt