《visual C++高级编程及其项目应用开发》一... ... char *strS; //定义第二个字符串变量 char *strT=new char[20]; //定义第三个变量并分配空间(字符数组) delete [] strT; //释放分配的内存空间 ...
基于2个网页-相关网页
释放分配的内存空间
Free the allocated memory space
以上为机器翻译结果,长、整句建议使用 人工翻译 。
例如,模块3使用malloc所分配的一段内存空间可以由模块2释放,因为对malloc和free的调用都是由同一个CRT对象实现的。
For example, a memory chunk allocated with malloc in Module 3 can be freed in Module 2 with free. It is because both malloc and free calls will end up in the same instance of CRT.
youdao
应用推荐
模块上移
模块下移
不移动