在 C++ 程序中,最普遍使用的资源是 dynamically allocated memory(动态分配的内存)(如果你分配了内存却从不释放,就会导致 memory leak(内存泄漏)的后果),但是内存仅仅是很多你必须管理的资源中的一种。
基于16个网页-相关网页
dynamically allocated memory bugs 动态内存分配错误
Always properly handle return values of functions returning references of dynamically allocated memory.
始终正确处理返回动态分配的内存引用的函数返回值。
The third byte of this memory location further points to some other dynamically allocated memory location of 10 bytes, as shown in Figure 6.
该内存位置的第三个字节又指向某个动态分配的10字节的内存位置,如图6所示。
The data/heap region contains dynamically allocated memory and some globally accessible program data (for example, DB2 agent private memory).
data/heap 区域包含动态分配的内存和可全局访问的程序数据(例如 DB2 代理私有内存)。
应用推荐