04 2021 档案
摘要:C语言提供了malloc和free两个系统函数,完成对堆内存的申请和释放,malloc/free是库函数,需要头文件支持。而C++则提供了两个关键字new和delete,需要编译器支持。 1、new和delete C++中,用new和delete动态创建数组或单个对象,new表达式返回指向该新创健对
阅读全文
摘要:std::stringstream::str // stringstream::str #include <string> // std::string #include <iostream> // std::cout #include <sstream> // std::stringstream,
阅读全文

浙公网安备 33010602011771号