摘要: 1、DecimalFormat类2、Math类 Math.random()方法3、Random类4、BigInterger与BigDecimal 阅读全文
posted @ 2015-10-17 14:26 微风星宇 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 一、Interger二、Long三、Short四、Boolean五、Byte六、Character七、Double八、Number 阅读全文
posted @ 2015-10-17 14:23 微风星宇 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 在java中不能将方法体内的局部变量声明为static的。例如下诉代码就是错误的。public class example{ public void method(){ static int i = 0; }}在静态方法中不可以使用this关键字在静态方法中不可以直接调用非静态方法,但非静... 阅读全文
posted @ 2015-10-17 14:16 微风星宇 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 6 typedef struct Teacher 7 { 8 char name[64]; 9 int age;10 int id;1... 阅读全文
posted @ 2015-10-10 20:09 微风星宇 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 6 //定义一个结构体 7 //定义一个数据类型。固定内存大小的别名,还没有分配内存 8 /*struct Teacher 9 {10 char na... 阅读全文
posted @ 2015-10-10 19:18 微风星宇 阅读(2615) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 6 //定义一个结构体 7 //定义一个数据类型。固定内存大小的别名,还没有分配内存 8 /*struct Teacher 9 {10 char na... 阅读全文
posted @ 2015-10-10 17:07 微风星宇 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 6 //产生malloc 7 char **getMem41(int num) 8 { 9 char **p2 = NULL; 10... 阅读全文
posted @ 2015-10-10 16:02 微风星宇 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 6 void print_Num(char myArray[10][30],int num) 7 { 8 int i = 0; 9 for (... 阅读全文
posted @ 2015-10-10 15:09 微风星宇 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 6 void printNum(char **array, int num) 7 { 8 int i = 0; 9 for (i = 0; i... 阅读全文
posted @ 2015-10-10 14:22 微风星宇 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1 int main() 2 { 3 const int a; 4 int const b; 5 const char *c;// 修饰所指向的内存变量 c是指向一个常整0数型的指针(所指向的内存数据是不能改变的,但本身数据能改) 6 char * const d;... 阅读全文
posted @ 2015-10-09 15:18 微风星宇 阅读(191) 评论(0) 推荐(0) 编辑