Computer and Information Sciences 192
This exercise has two objectives:
1. You should be able to recognize several common error message sequences and be able to relate the messages to a particular error or error sequence.
2. You should become familiar with the operation of the editor environment.
The following two Power Point files should help in understanding the Visual C++.NET screen and entering a program.Understanding the Visual C++.NET screen
Often error messages generated by Visual C++.NET is not as expressive as they might be. One tool for understanding error messages is to create and "Error Dictionary". The following project will result in the beginning of such a dictionary. As you work through the course, you should expand your dictionary to include additional error entries as you encounter them.
After booting the .NET IDE, modify the outline provided by the Wizard in the editor of your computer to the following:
using namespace std;
int _tmain(int argc, _TCHAR* argv)
cout << "Hello world \n";
cout << "from -- [Your Name Goes Here]" << endl;
Now build and run the program. Print a copy of the program and results by blocking the text of each and pasting into a separate word or text document.
Remove a punctuation mark or change the spelling of words in the program (one at a time). After each change recompile (and if a "clean" compile run). Now note the error(s) in the error window. Block the new code and error message(s) and paste them into your document. Number the modification sequences and highlight the error. Do 20 runs creating a variety of errors (one error per execution).
After accumulating the errors and associated messages, put a cover page on the project and turn in (if you are in the on-line course send the resulting file -- no cover page -- as an attachment to an e-mail message).