摘要: C语言提供了malloc和free两个系统函数,完成对堆内存的申请和释放,malloc/free是库函数,需要头文件支持。而C++则提供了两个关键字new和delete,需要编译器支持。 1、new和delete C++中,用new和delete动态创建数组或单个对象,new表达式返回指向该新创健对 阅读全文
posted @ 2021-04-26 22:44 风不会停息gcc 阅读(703) 评论(0) 推荐(0)
摘要: std::stringstream::str // stringstream::str #include <string> // std::string #include <iostream> // std::cout #include <sstream> // std::stringstream, 阅读全文
posted @ 2021-04-26 14:53 风不会停息gcc 阅读(3127) 评论(0) 推荐(0)