代码搜索:enum
找到约 10,000 项符合「enum」的源代码
代码结果 10,000
www.eeworm.com/read/480849/6662522
cpp enum.cpp
// Chapter 2 - Program 1 - ENUM.CPP
#include
enum game_result {WIN, LOSE, TIE, CANCEL};
int main()
{
game_result result;
enum game_result omit
www.eeworm.com/read/480849/6662610
cpp enum.cpp
// Chapter 2 - Program 1 - ENUM.CPP
#include
enum game_result {WIN, LOSE, TIE, CANCEL};
int main()
{
game_result result;
enum game_result omit
www.eeworm.com/read/477538/6738197
vb enum.vb
Imports System.IO.Ports
Namespace Common
Public Enum EnumEncoding
GSM_Default_7Bit = 0
Unicode_16Bit = 2
Class2_7_Bit = 3
Hex_Message = 4
Class2_
www.eeworm.com/read/410432/11287544
c enum.c
/* enum.c -- uses enumerated values */
#include
#include // for strcmp()
#include // C99 feature
enum spectrum {red, orange, yellow, green, blue, violet};
www.eeworm.com/read/409347/11331796
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
www.eeworm.com/read/263879/11338216
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/404167/11490840
txt in_enum.txt
// in_enum.txt
// Copyright (C) 2008 Willow Schlanger
$nt
// These have a size of 'void'.
asgn
// void is used only at the end of the table itself to terminate it
void
// These always have thei
www.eeworm.com/read/403014/11523700
cpp enum.cpp
//: C03:Enum.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Keeping track of shapes
enum Sha
www.eeworm.com/read/403011/11524255
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/403011/11524457
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