討論串[問題] 結果不如預期(幫Debug)
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
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個字)
內容預覽:
以下是快速排序. 但不知為啥執行後 就是沒排序. 不知錯在哪裡. 煩請不吝賜教 謝謝. #include <iostream>. using namespace std;. void QuickSort(int *, int , int);. void Swap(int , int);. int m
(還有757個字)
首頁
上一頁
1
下一頁
尾頁