0
点赞
收藏
分享

微信扫一扫

try catch整个函数


​​软件架构师​​何志丹


#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不支持。

举报

相关推荐

0 条评论