软件架构师何志丹
#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不支持。
try catch整个函数
阅读 84
2022-07-27
软件架构师何志丹
#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)