一、C语言的关键字共有32个,根据关键字的作用,可分其为数据类型关键字、控制语句关键字、存储类型关键字和其它关键字四类。1 数据类型关键字(12个):(1) char :声明字符型变量或函数(2) double :声明双精度变量或函数(3) enum :声明枚举类型(4) float:声明浮点型变量...
分类:
编程语言 时间:
2015-06-06 16:26:22
阅读次数:
173
using System;
using System.ComponentModel;
using System.Reflection; namespace LH.DotNet2.Utilities.Common
{ /// /// 枚举帮助类 /// public static class Enum...
分类:
编程语言 时间:
2015-06-05 11:50:56
阅读次数:
152
public enum PayWay { Online(1, "在线"), Money(2, "现金"), POS(3, "POS机支付); private int nCode; private String way; private PayWay(int nCode, St...
分类:
移动开发 时间:
2015-06-05 11:40:47
阅读次数:
199
#include
#include
#include
#include
using namespace std;
#define MaxVertexNum 100 //最大顶点数
typedef enum{DG,UDG,DN,UDN} GraphKind; //图的种类
typedef int InfoType;
typedef char VertexType;
typed...
分类:
其他好文 时间:
2015-06-05 10:19:31
阅读次数:
110
typedef NS_ENUM(NSInteger, UIDeviceOrientation)//设备方向{ UIDeviceOrientationUnknown, UIDeviceOrientationPortrait, // 竖向,头向上 UIDeviceOrientati...
分类:
其他好文 时间:
2015-06-04 18:53:37
阅读次数:
82
#include
#include
#include
#include
#define INFINTY INT_MAX //最大值
#define MaxVertexNum 100 //最大顶点数
using namespace std;
typedef enum{DG,UDG,DN,UDN} GraphKind; //图的种类(有向图,无向图,又向网,无向网) ...
分类:
其他好文 时间:
2015-06-04 15:54:10
阅读次数:
150
UIViewContentModetypedef enum {UIViewContentModeScaleToFill,UIViewContentModeScaleAspectFit,// contents scaled to fit with fixed aspect. remainder is ...
分类:
其他好文 时间:
2015-06-04 15:41:27
阅读次数:
114
C语言关键字: 32个关键字,全是小写 auto double int struct break else long switch case enum register typedef char extern return union const float short unsigned c...
分类:
编程语言 时间:
2015-06-04 15:06:55
阅读次数:
139
// new TestEnum().change(); // 测试普通枚举
// new TestEnum().changes(); // 测试自定义枚举
// new TestEnum().overrideMethod(); // 测试枚举中覆盖方法
// new TestEnum().interfaceColor(); // 测试枚举实现外部接口类
// 1. 遍历枚举类型
System. out .println( "......演示枚举类型的遍历 ......" );
...
分类:
编程语言 时间:
2015-06-04 13:50:41
阅读次数:
165