代码搜索:enum
找到约 10,000 项符合「enum」的源代码
代码结果 10,000
www.eeworm.com/read/123431/14634482
vb frmeditor.vb
Imports System.IO
Imports System.Drawing.Printing
'文件格式常数
Public Enum DocumentType
TXTDocument
RTFDocument
End Enum
Public Class frmEditor
Inherits System.Windows.Forms.Form
www.eeworm.com/read/470720/1447440
c warn2.c
// Build don't link:
// Special g++ Options: -Wall
enum Boolean {
Ok = 0,
NotOk = 1,
};
enum OpResult {
Succeeded = 0,
TempFail = 1,
PermFail = 2,
};
OpResult fn1() {
return TempFail;
}
www.eeworm.com/read/470693/1459386
c warn2.c
// Build don't link:
// Special g++ Options: -Wall
enum Boolean {
Ok = 0,
NotOk = 1,
};
enum OpResult {
Succeeded = 0,
TempFail = 1,
PermFail = 2,
};
OpResult fn1() {
return TempFail;
}
www.eeworm.com/read/247171/4486469
vb constructorinitialization4.vb
Imports System
Imports System.Collections
Imports System.Reflection
Namespace ConstructorInitialization4
Enum ks
value1
value2
End Enum
Class Test
Shared var As ks
www.eeworm.com/read/247171/4486989
vb optionala.vb
Option Strict Off
Imports System
Module Test
Enum E
A
B
End Enum
Function F(Optional ByVal i As Integer = 42) As Integer
F = i + 1
End Function
Function F2
www.eeworm.com/read/240162/4579029
c scoped4.c
/* PR c++/754 */
/* { dg-do compile } */
namespace foo
{
namespace bar
{
enum x {foo
};
enum {ubit0 = 0x0001};
// Used to get a parse error before "::" tok
www.eeworm.com/read/233448/4671139
c scoped4.c
/* PR c++/754 */
/* { dg-do compile } */
namespace foo
{
namespace bar
{
enum x {foo
};
enum {ubit0 = 0x0001};
// Used to get a parse error before "::" tok
www.eeworm.com/read/233448/4684387
c 950921-1.c
typedef enum
{
a = (X) 0, /* { dg-error "undeclared|not integer|parse error|syntax error|expected" } */
b
} c;
typedef enum
{
d = (X) 0 /* { dg-error "undeclared|not integer|parse error|syntax
www.eeworm.com/read/233448/4686296
c symbian3.c
/* { dg-do compile { target arm*-*-symbianelf* } } */
/* Check that enumeration types are 4-byte types. */
enum e { e_1 };
extern int i[sizeof (enum e)];
int i[4];
www.eeworm.com/read/229812/4743852
h ctluser.h
#ifndef CTLUSER_H
#define CTLUSER_H
/* Define the control IDs of your field types here. Define an ENUM
list as follows:
enum {
CTL_YOUR_FIELD_1 = CTL_USER,