这些函式解决两个最棘手的记忆体配置问题:覆写配置之缓冲区的尾端和记忆体遗漏 (无法成功释放不再需要的配置)。
These functions solve two of the most difficult memory allocation problems: overwriting the end of an allocated buffer and memory leaks (failing to free allocations after they are no longer needed).
衍生类别中的函式试图覆写基底类别中的虚拟函式,但衍生类别函式没有与基底类别函式相同的传回型别。
A function in a derived class attempted to override a virtual function in a base class, but the derived class function did not have the same return type as the base class function.
这可防止其他类别藉著覆写重要函式来变更类别的行为。
This prevents other classes from changing the behavior of the class by overriding important functions.
应用推荐