Write a C++ program call it lab2.cpp in Visual C++ or hercules.
The output should be similar to the following.
This program adds two integers!
Please enter the first number: 3
Please enter the second number: 2
The sum of the two numbers is: 5
Compile and run lab2.cpp in Visual C++ or hercules.
Once you are happy with the program output, make a screenshot.
and call it lab2.jpeg
Show your lab instructor lab2.jpeg
Transfer the finished lab2.cpp to your herucles
account.
Use Script command to capture the program and the program output into a file called
lab2.log.
There are 8 steps you need to do in Script. If you forget how to use script,
refer to
Script link
Show your lab instructor lab2.log
This page last modified:
Monday, 14-Jan-2013 09:53:27 CST
Accessed
times.
Copyright: Department of Computer Science, University of Regina.