連結

Joy 發表在 痞客邦 留言(0) 人氣()


籃球歌唱足壘球


Joy 發表在 痞客邦 留言(0) 人氣()



5
計算機組織
9:30 am
6
通識
8:30 am

網路概論
10:10 am
7
8
微積分
10:00 am
9
資料庫導論
9:30 am
12
程式語言
5:30 pm
13 14 15 16
19 20
資料結構
13:20 am
21
計算機概論
9:10 am
22 23
26 27 28
計算機概論
8:10 am
29 30



Joy 發表在 痞客邦 留言(0) 人氣()



        1
優酪乳 40
2 3
4 5 6
晚餐 670
獸醫 350
狗食 370
7
早餐 105
中餐 55
晚餐 55
8
早餐 35
中餐 55
9
早餐 35
10
獸醫 900
中餐 48
11
獸醫 400
12
狗食 330
獸醫 150
晚餐 85
13
早餐 87
中餐 30
晚餐 20
交通 125
14
早餐 25
15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  

Joy 發表在 痞客邦 留言(0) 人氣()

void selectSort(char *data, int count) 
{
 int i, j, pos;
 char temp;
 for ( i = 0; i < count - 1; i++ ) 
 { 
  pos = i;
  temp = data[pos];
  for ( j = i + 1; j < count; j++ )
    if ( data[j] < temp ) 
    {
     pos = j; 
     temp = data[j];
    }
  data[pos] = data[i];
  data[i] = temp;
  printf("%d: [%s]\n", i+1, data);
 }
}


void bubbleSort(char *data, int count) 
{
 int i,j;
 int temp;

 for ( j = count; j > 1; j-- ) 
 {
  for ( i = 0; i < j - 1; i++ )
    if ( data[i+1] < data[i] ) 
    {
     temp = data[i+1];
     data[i+1] = data[i];
     data[i] = temp;
    }
  printf("%d: [%s]\n", count-j+1, data);
 }
}

Joy 發表在 痞客邦 留言(0) 人氣()