new()和malloc()有什么区别?

编程入门 行业动态 更新时间:2024-10-27 06:30:44
本文介绍了new()和malloc()有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

new()和malloc()有什么区别? RS

Hi, What is the difference between new() and malloc()? RS

推荐答案

RS写道: new()和malloc()有什么区别? What is the difference between new() and malloc()?

''new''是在免费商店中创建对象的C ++方式。 ''mallow''是分配内存的C方式。

''new'' is the C++ way to create object in free store. ''mallow'' is the C way to allocate some memory.

这是由很多书解释的。你甚至可以google它。 简单地说,新的是OOP,而malloc不是。 RS < rs@nospam> D'è?óê?t news:76SOd.358225 That''s explained by lots of books. You can even google it. Simply put, new is OOP, while malloc is not. "RS" <rs@nospam> D′è?óê?t news:76SOd.358225

Xk.263642@pd7tw3no ... Xk.263642@pd7tw3no... 什么new()和malloc()之间的区别是什么? RS Hi, What is the difference between new() and malloc()? RS

更多推荐

new()和malloc()有什么区别?

本文发布于:2023-11-07 04:11:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565544.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有什么区别   malloc

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!