討論串[問題] 結果不如預期(幫Debug)
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者POSIX (tedium of chores)時間16年前 (2009/03/18 23:53), 編輯資訊
0
0
0
內容預覽:
call by value. call by address. void Swap(int* a, int *b){. int temp = *a;. *a = *b;. *b = temp;. } Swap(&a[i], &a[j]); Swap(&a[i+1], &a[right]); i++;
(還有8個字)

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者kumusou (一心想)時間16年前 (2009/03/18 22:46), 編輯資訊
0
0
0
內容預覽:
以下是快速排序. 但不知為啥執行後 就是沒排序. 不知錯在哪裡. 煩請不吝賜教 謝謝. #include <iostream>. using namespace std;. void QuickSort(int *, int , int);. void Swap(int , int);. int m
(還有757個字)
首頁
上一頁
1
下一頁
尾頁