从以下几个方面总结下new和malloc的区别:
参考博客:
https://blog.csdn.net/nie19940803/article/details/76358673
https://blog.csdn.net/linux_ever/article/details/50533149
https://blog.csdn.net/qq_26816591/article/details/52214313
https://blog.csdn.net/xiaminli/article/details/75801688
https://blog.csdn.net/Dream_xun/article/details/50347139