DEVRY CIS 170 Entire CourseDEVRY CIS 170 Entire Course DEVRY CIS 170 C iLab 1 of 7 Getting Started | Page 2

15 Part C Program Listing and Output 15 Lab Steps Preparation : If you are using the Citrix remote lab , follow the login instructions located in the iLab tab in Course Home . Lab : Part A : Getting Started Step 1 : Start the Application From the File menu , choose " New Project ." Choose “ Win32 Console Application .” Enter a name in the name field . Click “ Next ” and choose the following options : Application Type : " Console Application " Additional options : Check mark “ Empty project ” and uncheck 8 . Click Finish . Your project is now created . Step 2 : How to Add a Source Code File to Your Project (. cpp file ) In the Solution Explorer , right-click on the “ Source Files ” folder and select " Add " and then " New Item ." In the next dialog box , choose C ++ file (. cpp ), enter a name for your source code file , and press the Add button . Type or copy and paste your code into the newly created source code file . Build the file by pressing F7 , and then execute your program by pressing CTRL-F5 ( start without debugging ) or use the F5 key ( Start Debugging ). Step 3 : Create a Source Code File Now enter the following C ++ program exactly as you see it . Use the tab where appropriate . [ Note : C ++ is case sensitive .] Instead of John Doe , type your name . # include using namespace std ; void main () { cout < " john ="" doe "="">< endl ;=""> cout < " cis170c ="" - ="" programming ="" using ="" c ++\ n ";=""> cout < "\ n \ n \ nhello ,="" world !\ n \ n ";=""> } When you execute a program in debug mode ( F5 ), the console screen may appear and disappear before you have an opportunity to view your output . There are several techniques you can use to pause the console screen so you can read the output . On the very last line in the main () function : a . insert the statement : system (" pause "); -ORb . insert an input statement : cin < myvarable ;=""> Step 4 : Output The black screen or console should read : John Doe