Objective Become familiar with the C++ compiler/environment that you plan to use for the programming assignments in this class. I strongly recommend using the Unix system as we discussed in class.
Requirements
- Get the "Hello, world!" program working.
- Add a function (ShowProgramHeader () as described in lecture) to print your name and class information before the "Hello, world!" message.
Note: This will be required on all future assignments.
The following changes should generate compiler errors/warnings. If it does, record the message; if it does not, record that. Turn this record in with your assignment.
- Remove the semi-colon from the output statement in main().
- Comment out the using namespace std; statement. Use either a block comment or an in-line comment. Is there a difference?
- Comment out the #include (#include on older compilers) statement. Use either a block comment or an in-line comment. Is there a difference?
- Change the double quotes that enclose the Hello, world! message to single quotes.
- Change the << (put to operator) to < on one of your output lines.
- Remove the starting brace from main 0 .
- Remove the closing brace from main 0 .
- Change cout to Cout or COUT.
- Change main to Main or MAIN.
- Change the name of the function that displays your name, date, etc, from ShowProgramHeader() to ShowHeader().
Deliverables
- Program fully documented.
- Output-neatly formatted and documented.
- List of errors neatly formatted
AS you can see the assignment I want you to work on it.