You are on page 1of 6

3 Introduction

Objectives  
 How to use Microsoft Visual Studio.Net 2008 ( IDE ). 
 How to create a new project using C language. 
 How to write the code after writing the outline. 
 How to do Testing & Maintenance steps. 
 Using the Microsoft Word to display your work and get the print out. 
 Files: data files (for example: .C or .TXT) and program files (.EXE). 
 Windows: open programs (run .EXE), open data files (in view in Notepad). 
 Locate (find) C programs. 
 Create/delete/rename folder. 
 Locate (find) and run IDE. 
 Open program in IDE. 
 Save program. 
 Change program name using Save As. 
 Get help from your IDE: Help Menu, and context help using F1. 
 
Student Notes 
   

CPCS202 ‐ The Lab Note Lab 1


4 Introduction
 Create a project in C:  

1. First run the our IDE ( Microsoft Visual Studio.Net 2008) by clicking upon the icon or 
from start menu. 

 
2. From the main interface chose the menu File then New then Project.

 
3. From the New Project dialog choose the Project Type as (Visual C++). 

 
   
CPCS202 ‐ The Lab Note Lab 1
5 Introduction
4. Then choose from Win32 category the Win32 Console Application template, and   
write your project name then click OK. 

 
5. From the custom application wizard click Next . 

 
   
CPCS202 ‐ The Lab Note Lab 1
6 Introduction
6. Then from Application Setting check the Empty Project Option, then Click Finish.   

 
7. Now you want to add an Item in your empty project, So choose the command Add
New Item from Project menu. 

 
   

CPCS202 ‐ The Lab Note Lab 1


7 Introduction
8. Then choose from Add New Item dialog the Header file template, and name your   
new item and end it by (.c) . and be sure from item location, it must be locate in your 
project folder , then click Add. 

 
Now you can write your program code in this empty interface. 

CPCS202 ‐ The Lab Note Lab 1


8 Introduction
 Implementation:  

1. Before you're writing the code, write the outline. 

 
2. Now, put under each comment line the suitable code as required. 

 
3. After you are finish from implementation, click Ctrl+F5 to run your program and 
display the output, and this is step which called Testing. 

 
4. If your program does not work, that means that you have an error in the code. 
So, try to correct it and run your program again (the Maintenance step). 
5. In the End don’t forget to Save your project after you're finish. 

CPCS202 ‐ The Lab Note Lab 1

You might also like