代码搜索:enum
找到约 10,000 项符合「enum」的源代码
代码结果 10,000
www.eeworm.com/read/178378/9404919
cpp enum.cpp
//: C03:Enum.cpp
// From Thinking in C++, 2nd Edition
// at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Keeping track of shapes.
enum shape_type {
www.eeworm.com/read/372762/9494369
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/175135/9558277
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/175135/9558628
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/169793/9837924
gif enum.at.gif
www.eeworm.com/read/169721/9845058
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/169281/9870343
dsw enum.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
www.eeworm.com/read/363888/9933043
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/166306/10024593
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