且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使 C++ 程序崩溃的最简单方法是什么?

更新时间:2022-06-19 06:07:57

试试:

raise(SIGSEGV);  // simulates a standard crash when access invalid memory
                 // ie anything that can go wrong with pointers.

发现于:

#include <signal.h>