Table of Contents
- I am having trouble compiling/running the polymorphism examples in Visual C++ 6.
- I am trying to run the examples (or exercises) for Chapter 16 of C++HTP4, but they do not seem to work when I create them with the Visual C++ 6 Introductory Edition. What is wrong?
- I lost my user's guide for the C & C++ MULTIMEDIA CYBER CLASSROOM (first edition). What is the registration number?
- Exercise 5.22 on page 352: Why do I get a compiler error on line 21?
- I have been reading your book, C++ How to Program and I have a couple of questions. Can C++ be used to make any kind of software application? Can C++ be used to make web applications?
I am having trouble compiling/running the polymorphism examples in Visual C++ 6.
You might not have configured the RTTI settings in your IDE, as explained in the text.
For Visual C++ 6:
Select Project > Settings > C/C++.
Select C++ Language from the Category drop-down list.
Ensure that Enable Run-Time Type Information (RTTI) is checked.
Equivalent instructions for Visual Studio .NET:
- Right click the project name in the Solution Explorer, and select Properties from the pop-up menu.
- In the dialog that appears, select Configuration Properties > C/C++ > Language on the left.
- On the right, change Enable Run-Time Type Info to "Yes (/GR)".
I am trying to run the examples (or exercises) for Chapter 16, but they do not seem to work when I create them with the Visual C++ 6 Introductory Edition. What is wrong?
You cannot use Visual C++ 6 Introductory Edition to create CGI applications, because of the dialog that is inserted into every application. You will need to use one of the other compilers mentioned in the preface.
I lost my user's guide for the C & C++
MULTIMEDIA CYBER CLASSROOM (first edition). What is the registration number?
06-0-01-01-4-016E6-DF6A9C
Be sure to enter this registration number EXACTLY as shown above.
Exercise 5.22 on page 352: Why do I get a compiler error on line 21?
The declaration int x in the for loop is scoped to the body of the for loop according to the new C++ standard. Thus, the variable does not exist when the compiler reaches line 21. To fix the error, declare variable x before the loop.
I have been reading your book, C++ How to Program and I have a couple of questions. Can C++ be used to make any kind of software application? Can C++ be used to make web applications?
C++ is one of the most flexible programming languages in existence today. Virtually any type of program can be created using C++. C++ can indeed be used to create Web applications. CGI scripts, ISAPI and ATL Server all use C++. ISAPI and ATL Server are Microsoft technologies.