errata
来自「《Big C++ 》Third Edition电子书和代码全集-Part1」· 代码 · 共 54 行
TXT
54 行
page 765
--------
Manager c'tor definition needs a qualifier:
Manager::Manager(...
page 767
--------
too many semicolons:
Employee e("Lisa Lim", 36000);;
ppg 767-8
---------
I realize this is possibly a silly question, but in the following:
"The use of the dynamic type applies only to the selector for a member
function."
By selector you mean the recipient of the message, correct?
ppg 767-8
---------
The following example needs to be fixed up a bit:
Manager man = new Manager(. . .);
cout << man << "\n"; // Executes Manager function
Ptrs?
Manager* man = new Manager(. . .);
cout << *man << "\n"; // Executes Manager function
...
print(cout, man);
vs.
print(cout, *man);
pg 774 (top)
-------------
You refer reader to Common Error 21.1. Did you want 21.2?
Syntax 21.4, pg 778
-------------------
The class keyword is missing from the example
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?