《Essential C++中文版》的原文摘录

  • ... This is because of the maximal munch compilation rule. This rule requires that a symbol sequence always be interpreted as the maximal legal sequence of symbols. (查看原文)
    [已注销] 2013-05-29 14:15:26
    —— 引自第132页
  • 准备购置、开始阅读 (查看原文)
    来方 2012-10-14 22:32:10
  • How does the compiler know which instance of the four overloaded functions to invoke? It compares the acutal arguments supplied to the funciton invocation against the parameters of each overloaded instance, choosing the best match. This is why the parameter list of each overloaded function must be unique. (查看原文)
    [已注销] 2013-05-29 14:12:33
    —— 引自第57页
  • 任何类如果声明有一个(或多个)纯虚函数,那么,由于其接口的不完整性(纯虚函数没有函数定义,是谓不完整),程序无法为它产生任何对象。这种类只能作为派生类的子对象(subobject)使用,且前提是这些派生类必须为所有虚函数提供确切的定义 (查看原文)
    孙言 2021-02-02 18:26:08
    —— 引自章节:5.4 定义一个抽象基类 .................