2012年2月19日

摘要: 对于待排序序列A[1, n],遍历整个序列,每次保证前1至n个数排列正确;View Code 1 /* 2 * insertion sort 3 * 2011-9-29 4 */ 5 6 #include <stdio.h> 7 #include <stdlib.h> 8 9 #define MAX_UNIT (7)10 11 unsigned int g_unit[MAX_UNIT] = {8,2,4,9,3,6,1};12 13 static void sort_showlist();14 15 static void sort_insertion(unsigned 阅读全文

posted @ 2012-02-19 22:28 Fredric 阅读(145) 评论(0) 推荐(0) 编辑

摘要: byte:字节/char:字符/String:字符串View Code 1 package com.app; 2 3 public class app { 4 5 /** 6 * @param args 7 */ 8 public static void main(String[] args) { 9 // TODO Auto-generated method stub10 String str1 = "hello, world!!";11 String str2 = "你好!!";12 Strin... 阅读全文

posted @ 2012-02-19 21:47 Fredric 阅读(161) 评论(0) 推荐(0) 编辑

摘要: hashmap用法笔记View Code 1 package com.app; 2 3 import java.util.HashMap; 4 import java.util.Iterator; 5 6 public class app { 7 8 /** 9 * @param args10 */11 public static void main(String[] args) {12 // TODO Auto-generated method stub 13 HashMap<String, Double> map = ... 阅读全文

posted @ 2012-02-19 19:30 Fredric 阅读(143) 评论(0) 推荐(0) 编辑


Copyright © 2024 Fredric
Powered by .NET 8.0 on Kubernetes