new()和malloc()有什么区别? [英] What is the difference between new() and malloc()?
本文介绍了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.com> 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.com> 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()有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文