软件架构师何志丹


#include "stdafx.h"

#include <iostream>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])  try
{
     char* p = NULL ;
     *p = 'a';
    return 0;
}
catch(...)
{
   cout << "catch...";
}

 

注意:

VC6不支持。

posted on 2022-10-31 20:36  闻缺陷则喜何志丹  阅读(3)  评论(0编辑  收藏  举报  来源