代码搜索:enum

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

代码结果 10,000
www.eeworm.com/read/470693/1457554

c enum5.c

// Copyright (C) 2001 Free Software Foundation, Inc. // Contributed by Ben Elliston // PR 80: Packed enums use minimum required storage. // excess errors test - XFAIL *-*-* extern "
www.eeworm.com/read/470693/1457601

c enum1.c

extern "C" void abort(); struct A { enum { a = 3}* p; int f() { return (int) a; } }; int main() { A a; if (a.f() != 3) abort(); }
www.eeworm.com/read/470693/1457757

c enum12.c

// Build don't link: template struct S1 { }; template struct S2 { enum { x = 3 }; void f(S1&); }; template void S2::f(S1&) { }
www.eeworm.com/read/470693/1457807

c enum2.c

// Build don't link: struct U { static int STATIC; }; template class FOO { public: enum { n = 0 }; }; template class BAR { public: enum { n = FOO::n }; }; int
www.eeworm.com/read/470693/1457855

c enum3.c

struct S { enum en { s0, s1, s2 }; }; template int val( ) { return e; } int main() { return val( ); }
www.eeworm.com/read/470693/1457883

c enum13.c

// Build don't link: // Origin: Theodore Papadopoulo template struct foo { enum { A = 4 >= 4, B = (1 ? true : A) }; }; foo bar;
www.eeworm.com/read/470693/1457969

c enum14.c

// Build don't link: // Copyright (C) 2000 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 4 Oct 2000 // Origin: bug 511 malte.starostik@t-online.de // Bug 5
www.eeworm.com/read/470693/1457989

c enum6.c

// Build don't link: template struct vector {}; template void fn(T) { enum tern { H, L, X, U }; vector ternvec; // ERROR - composed from a local type } template void f
www.eeworm.com/read/470693/1458012

c enum8.c

// Build don't link: template void f(); template void f() {} template struct S { enum E { a = 1, b = a + 3 }; }; int main() { f(); }
www.eeworm.com/read/470693/1458014

c enum4.c

// Build don't link: template struct U { T mT; }; template struct M { enum FLAG {On, Off}; U mUF; }; M gm;