- Explain the purpose of the following commands:
Hint: use
help command to print short descriptions of these commands
and their arguments.
- Using instructions from the lecture handout, write, compile, and execute a C++ program
that prints a welcoming message of your choice.
- Using instructions from the lecture handout, create an empty Win32 Console application
VC++ project. Add C++ file containing your program to the project. Compile it using
VC++ "Build" menu. Execute your program from the command window.
- Modify your program using VC++ code editor as follows:
- Why a temporary variable was necessary to do the swap?
- In VC++ program editor, place your text cursor on the line
tmp = one;
and press the F9 key to set a debugging breakpoint. Run your program in debug mode
using VC++ menu Debug -> Start or simply by pressing F5. Step through the lines
of your program in debugger. Switch between debug windows: Autos, Locals, Registers,
and Call stack. You should be able to see your variables and their values in those
windows. Hit F5 (continue) to finish the debugging session.
- Add some comments to your program.
|