errata
来自「《Big C++ 》Third Edition电子书和代码全集-Part1」· 代码 · 共 40 行
TXT
40 行
Chptr 20
========
ppg. 733-734
------------
Inconsistent capitalization of entries: Class scope, Global scope, File Scope.
pg. 737
-------
"To avoid this problem you can overload the function in the derived class, so
that both declarations appear in the same scope:"
Should that be "override", instead of "overload"?
pg. 737
-------
Missing semicolon after call to set_salary:
void Manager::set_salary(int new_salary)
{
Employee::set_salary(new_salary) // Invoke the base class function
}
pg. 743, Syntax 20.2
--------------------
class ClassName
{
. . .
friend ClassName; <== this is ambiguous
...
friend ostream& operator<<(ostream& out, const Employee& e)
<== missing semicolon
pg. 755, matrix4.h listing
--------------------------
line 275. Namespace needs a closing curly brace.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?