代码搜索:enum
找到约 10,000 项符合「enum」的源代码
代码结果 10,000
www.eeworm.com/read/136989/5833091
h be_enum.h
/* -*- c++ -*- */
// be_enum.h,v 1.19 2001/12/31 17:34:37 parsons Exp
// ============================================================================
//
// = LIBRARY
// TAO IDL
//
// = FIL
www.eeworm.com/read/131315/5931678
p enum.p
program enumtest (input, output);
type
Color = (RED, GREEN, BLUE);
var c1, c2 : Color;
procedure P (c : Color);
begin
writeln('c = ', ord(c):1);
end;
begin
c1 := BLUE;
c2 := GREEN;
www.eeworm.com/read/131315/5931700
out enum.out
reading symbolic information ...
type Color = (RED, GREEN, BLUE);
var c1 : Color;
[1] stop in P
[1] stopped in P at line 8
8 begin
P(c = RED), line 8 in "enum.p"
program(), line 15 in "enum.p"
m
www.eeworm.com/read/131315/5931734
c enum.c
typedef enum { RED, GREEN, BLUE } Color;
main()
{
Color c;
c = BLUE;
f(RED);
}
f(c)
Color c;
{
printf("c = %d\n", c);
}
www.eeworm.com/read/131315/5931773
out enum.out
reading symbolic information ...
typedef enum { RED, GREEN, BLUE } Color;
Color c;
[1] stop in f
[1] stopped in f at line 14
14 printf("c = %d\n", c);
f(c = RED), line 14 in "enum.c"
main(0x1
www.eeworm.com/read/131315/5931792
out enum.out
reading symbolic information ...
typedef enum { RED, GREEN, BLUE } Color;
Color c;
[1] stop in f
[1] stopped in f at line 14
14 printf("c = %d\n", c);
f(c = RED), line 14 in "enum.c"
main(0x1
www.eeworm.com/read/131315/5944274
p enum.p
(*
* Copyright (c) 1980, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi
www.eeworm.com/read/128026/5993004
c enum.c
# include
void main()
{
/* 经过下面的定义后,默认有:blue=0 red=1 ... black=4 */
enum color {blue, red, yellow, purple, black};
enum color i, j, k, pri;
int n, loop;
n = 0;
for(i=blue;
www.eeworm.com/read/126641/6015174
c a_enum.c
/* crypto/asn1/a_enum.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).