p755.c
来自「gcc-you can use this code to learn somet」· C语言 代码 · 共 19 行
C
19 行
// It checks to see if you can define your own global new operator.// prms-id: 755#include <new>extern "C" void _exit(int);void* operator new(size_t sz) throw (std::bad_alloc) { void* p = 0; _exit(0); return p;}int main () { int* i = new int; delete i; return 1;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?