August 2002
Beginner
1122 pages
22h 1m
English
| 1. | The output of the compiler should look something like this:
Error E2247 STREX1.cpp 21: 'string::m_Length' is not accessible in function main() Warning W8004 STREX1.cpp 28: 'Length' is assigned a value that is never used in function This one is simple; since m_Length is a private member variable of string, a nonmember function such as main can't access it. Also, the compiler is warning us that we are never using the value of the Length variable. |
| 2. | The output of the compiler should look something like this:
Error E2247 STREX2.cpp 17: 'string::string()' is not accessible in function main() This is also pretty simple. ... |
Read now
Unlock full access