摘要: 1.说明 enum是一个基本的关键字,却一直没弄清楚怎么用,这次在实现二叉树框架时需要用到常量,特地搜了一下,终于知道怎么用了. 2.enum使用要点 enum声明是一个类型,不是变量. enum经常用来表示常量 不同的enum类型不能互相赋值,除非进行强制类型转换,如果转换后的值不在目的enum类型的枚举范围内,相当于目的enum类型的值退化到整数类型。 ... 阅读全文
posted @ 2013-09-19 22:56 曾见绝美的阳光 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be ... 阅读全文
posted @ 2013-09-19 12:51 曾见绝美的阳光 阅读(239) 评论(0) 推荐(0) 编辑