2013年1月12日

摘要: 1 #include <stdio.h> 2 3 int a[10] = {2, 2, 1, 9, 4, 6, 3}; 4 int len = 7; 5 6 void bubble_sort(int *a, int len) 7 { 8 int flag = 0, i, j; 9 for (i = 0; i < len - 1; i++) {10 flag = 0;11 for (j = 0; j < len - i - 1; j++) {12 if (a[j] < a[j + 1]) {13 ... 阅读全文
posted @ 2013-01-12 21:30 brainworm 阅读(243) 评论(0) 推荐(0)
摘要: 1 # 2 # Created by gmakemake (Sparc Jul 27 2005) on Fri Jul 1 22:59:56 2011 3 # 4 5 # 6 # Definitions 7 # 8 9 .SUFFIXES:10 .SUFFIXES: .a .o .c .C .cpp11 .c.o:12 $(COMPILE.c) $<13 .C.o:14 $(COMPILE.cc) $<15 .cpp.o:16 $(COMPILE.cc) $<17 .c.a:18 $(COMPILE.c) -o $%... 阅读全文
posted @ 2013-01-12 21:20 brainworm 阅读(208) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/jqandjq/article/details/5987261 阅读全文
posted @ 2013-01-12 10:14 brainworm 阅读(95) 评论(0) 推荐(0)

导航