代码搜索:except

找到约 10,000 项符合「except」的源代码

代码结果 10,000
www.eeworm.com/read/229812/4738957

c except19.c

#include "fail.h" #pragma inline_depth(0); void bad(); struct F { static int count; int f; F( int f ) : f(f) { //printf( "F(%p,%d)\n", this, f ); if( f == -12 ) bad(); ++
www.eeworm.com/read/229812/4738960

c except17.c

#include "fail.h" int p_count; struct p { int x,y; p( int x, int y ) : x(x), y(y) { ++p_count; } p( p const &s ) : x(s.x), y(s.y) { ++p_count; } ~p() {--p_count; } };
www.eeworm.com/read/229812/4738964

c except34.c

#include "fail.h" struct B {}; struct D : B {}; struct E : D {}; void fooD() { throw D(); } void fooE() { throw E(); } int main() { #if __WATCOM_REVISION__ >= 8 int cou
www.eeworm.com/read/229812/4738994

c except41.c

#include "fail.h" // crashes Watcom 11 compiler if exceptions enabled // extracted from Rogue Wave Tools.h++ 6.1: class RWCStringRef { }; class RWCString { public: RWCString();
www.eeworm.com/read/229812/4739001

c except22.c

#include "fail.h" struct S { int a[16]; }; int k; void foo() { ++k; throw S(); } int main() { for( int i = 1; i < 10000; ++i ) { try { foo(); } catch( S con
www.eeworm.com/read/229812/4739019

c except31.c

#include "fail.h" #if __WATCOMC__ > 1060 struct C { int s; static int sig; static int ctored; C(); C( C const &r ); ~C(); }; int C::sig = 1; int C::ctored;
www.eeworm.com/read/229812/4739022

c except38.c

#include "fail.h" #if __WATCOM_REVISION__ >= 8 #pragma inline_depth(20) struct D { D( const char * what_arg ) throw() { } ~D(); }; int q; D::~D() { ++q; } static vo
www.eeworm.com/read/229812/4739030

c except18.c

#include "fail.h" #include #include #include int noMore; void *operator new( size_t amt ) { if( noMore ) { throw 'x'; } return mal
www.eeworm.com/read/229812/4739032

c except07.c

#include "fail.h" #include void foo() { throw 0; } int main() { int x=0; try { x++; foo(); } catch(...) { if (x!=1) fail(__LINE__); } _PASS; }
www.eeworm.com/read/229812/4739061

c except05.c

#include "fail.h" #include #include #include unsigned count; struct D { D() { ++count; } ~D() { --count; } }; struct Base { virtual int id()