testexceptinclude.cpp

来自「mysql-5.0.22.tar.gz源码包」· C++ 代码 · 共 28 行

CPP
28
字号
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997-2002 *	Sleepycat Software.  All rights reserved. * * $Id: TestExceptInclude.cpp,v 1.4 2002/07/05 22:17:59 dda Exp $ *//* We should be able to include cxx_except.h without db_cxx.h, * and use the DbException class.  We do need db.h to get a few * typedefs defined that the DbException classes use. * * This program does nothing, it's just here to make sure * the compilation works. */#include <db.h>#include <cxx_except.h>int main(int argc, char *argv[]){	DbException *dbe = new DbException("something");	DbMemoryException *dbme = new DbMemoryException("anything");	dbe = dbme;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?