1 定义枚举 enum Days { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday }; 默认情况下,枚举中的每个元素的基础类型的值是int,如果不指定值,则其值以1递增;Days.Sunday 的值为 0,Days.M ...
分类:
编程语言 时间:
2017-05-03 21:55:51
阅读次数:
230
枚举是被命名的整型常数的集合,如一个星期的Sunday、Monday和Tuesday等七天。 ...
分类:
其他好文 时间:
2017-04-26 21:35:45
阅读次数:
202
开启指定的job: BEGIN dbms_auto_task_admin.enable( client_name => 'sql tuning advisor', peration => NULL, window_name => 'MONDAY_WINDOW'); END; / ...
分类:
数据库 时间:
2017-04-24 10:02:29
阅读次数:
261
There are no shortcuts to any place worth going. 任何值得去的地方,都没有捷径。 Several years ago, I climbed the Huashan Mountain with my classmates. It is one of th ...
分类:
其他好文 时间:
2017-04-13 14:46:54
阅读次数:
147
#include<stdio.h>#include<stdlib.h>enum WeekDay{ Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday};main(){ //枚举,规定变量取值范围只能从预先定义好的值中选择 enum Wee ...
分类:
其他好文 时间:
2017-02-19 14:29:13
阅读次数:
173
Today is my birthday and I have totally refreshed. Knowing yourself is the beginning of all wisdom. 智者始于自知。 The most difficult thing in the world may ...
分类:
其他好文 时间:
2017-02-14 15:56:13
阅读次数:
216
A bird is known by its note, and a man by his talk. 闻其声而知鸟,听其言而知人。 Listen to what a man talks, watch what he is doing, then we will know him. So pleas ...
分类:
其他好文 时间:
2017-01-27 00:20:37
阅读次数:
176
"This Monday I was invited to do a presentation on this Friday, and today is Friday. I am going to share something with you all, but unfortunatily it ...
分类:
其他好文 时间:
2016-12-23 09:43:51
阅读次数:
195
True love stories never have endings. 真正的爱情故事永远没有结局。 It seems I have been customed to the single life. I am afraid that they’ll break my heart, or I w ...
分类:
其他好文 时间:
2016-12-21 00:05:22
阅读次数:
242
1.定义时使用enum关键字定义。 2.隐式继承了java.lang.Enum类,所以不能再继承其他类了。 3.隐式的final修饰符,所以不能被其他类继承。 1 package enumTest; 2 3 public enum Week { 4 MONDAY, 5 TUESDAY, 6 WEDN ...
分类:
编程语言 时间:
2016-12-18 09:42:20
阅读次数:
188