代码搜索:enum
找到约 10,000 项符合「enum」的源代码
代码结果 10,000
www.eeworm.com/read/253260/12235169
cpp enum.cpp
// enum.cpp -- a simple enumeration
#include
#include
using namespace std;
enum spectrum {red, orange, yellow, green, blue, violet, indigo, ultraviolet};
int main()
{
en
www.eeworm.com/read/253260/12235656
cpp enum.cpp
// enum.cpp -- use enum
#include
// create named constants for 0 - 6
enum {red, orange, yellow, green, blue, violet, indigo};
int main()
{
using namespace std;
cout
www.eeworm.com/read/338620/12291665
c enum.c
/*++
Copyright (c) 1997-1998 Microsoft Corporation
Module Name:
ENUM.C
Abstract:
This source file contains the routines which enumerate the USB bus
and populate the TreeVie
www.eeworm.com/read/338035/12327266
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/337718/12347710
c enum.c
/*++
Copyright (c) 1997-1998 Microsoft Corporation
Module Name:
ENUM.C
Abstract:
This source file contains the routines which enumerate the USB bus
and populate the TreeVie
www.eeworm.com/read/337307/12377594
m enum.m
%最优化枚举法例
clear;
vmax=-inf;
for x2=10:20
for x3=-5:16
if x2+2*x3>=10&3*x2+2*x3vmax,
vmax=v;x20=x2;x30=x3;
end
www.eeworm.com/read/250756/12386680
c enum.c
/*
* enum.c - enumerate all charsets defined by the library.
*
* This file maintains a list of every other source file which
* contains ENUM_CHARSET definitions. It #includes each one with
www.eeworm.com/read/337096/12391429
cpp enum.cpp
// enum.cpp -- a simple enumeration
#include
#include
using namespace std;
enum spectrum {red, orange, yellow, green, blue, violet, indigo, ultraviolet};
int main()
{
en
www.eeworm.com/read/337096/12392000
cpp enum.cpp
// enum.cpp -- use enum
#include
// create named constants for 0 - 6
enum {red, orange, yellow, green, blue, violet, indigo};
int main()
{
using namespace std;
cout
www.eeworm.com/read/336899/12408173
cxx enum.cxx
typedef enum foo_enum_e /* Sample enumeration type */
{
FOO_ONE, /* One fish */
FOO_TWO, /* Two fish */
FOO_RED, /* Red fish */
FOO_BLUE, /* Blue fish */
FOO_PRIVATE /* Priv