VC编译器捕获内存访问错误

int main() { try { *(int *)0 = 1; } catch (...) { std::cout << "Error code: 0xc05" << std::endl; } return 0; } 在VC编译器下使用c++标准异常的时候默认不能捕捉到内存访问错误的异常,也就是咱们常见的
相关文章
相关标签/搜索