摘要:
#include "stdafx.h"void bubble1(int a[],int n){ int i,j,temp; for(i=0; i<n-1; i++) // n 次 { for(j=0; j<n-1-i; j++) //5 .. 4 .. 3 .. 2 .. 1 = ((1 + n) * n) /2 次 { if (a[j]>a[j+1]) //5 .. 4 .. 3 .. 2 .. 1 = ((1 + n) * n) /2 次 { ... 阅读全文
posted @ 2013-05-20 15:33
面宅
阅读(154)
评论(0)
推荐(0)

浙公网安备 33010602011771号