CIS 170 (Devry) help Making Decisions/uophelp.com CIS 170 (Devry) help Making Decisions/uophelp.com | Page 3
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
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
To compile the program, click Build on the menu bar and then click the
BuildSolution or Build LabA option. You should receive no error
messages. If you see some error messages, check the code above to
make sure you didn't key in something wrong. Once you make your
corrections to the code, go ahead and click Build >> Build Solution
again.
Step 7: Execute the Program
Once you have no syntax errors, to execute or run your program, click
Debug on the menu bar, and then click Start Without Debugging.
Step 8: Capture the Output
Print a picture of your screen output. (Do a print screen and paste this
into MS Word.)
Step 9: Print the Source Code
Copy your source code and paste it into the same Word document as
your screen print. Save the Word Document as
Lab01A_LastName_FirstInitial
Note: Using the Visual Studio editor to compile your programs creates a
lot of overhead. These additional files will become important as you