CIS 170C iLab 1 of 7 Getting Started (100 % Correct) CIS 170C iLab 1 of 7 Getting Started (100 % Correc | Page 3
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.
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");
-OR-
b. insert an input statement: cin>>myVarable;
Step 4: Output
The black screen or console should read:
John Doe
CIS170C - Programming using C++
Hello, World
-
Step 5: Save Program
Save your program by clicking File on the menu bar and then clicking Save Program.cpp, or by
clicking the Save button on the toolbar, or Ctrl + S.
Step 6: Build Solution