LAB#1 CSC st semster H King Saud University College of Applied studies and Community Service Csc 1101
Start Microsoft Visual Studio Start → All Programs → Microsoft Visual Studio 2005 → Microsoft Visual Studio 2005
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.
4 Initial MSVS Dialog Here is an image of the initial MSVS Dialog.
5 Opening a New Project Open a project using File → New → Project…
6 Choose a Visual C++ Win32 Project Type Choose Win32 Console Application Enter a name for your project. Choose a Project Type and Name
Project Settings ä Choose Next > from the initial dialog.
8 Project Settings (continued) Be sure to select Empty project and Finish.
9 Add a New Item Right-click on Source File and Add a New Item.
10 Create a main.c Choose Visual C++ Code, C++ File named main.c.
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!
12 Start your program Select Debug → Start without Debugging.
13 Examine your output Your program ran. Check it out!
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.
Reference 1CompilingUnderMSVS.ppt 1CompilingUnderMSVS.ppt