討論串[問題] C++以函數傳送陣列,而以指標方式接收
共 8 篇文章
內容預覽:
void array_dump(int* array, int count). {. for(int i = 0; i < count; i++). cout << *(array + i);. cout << endl;. } void bubble_sort(int* array, int co
(還有364個字)
內容預覽:
我想以函數傳送陣列,而以指標方式接收. 不過結果卻讓人失望,附上我的原始碼,. 請各位幫我看看是哪裡出了問題,謝謝!. #include <iostream>. using namespace std;. void array_dump(int *a, int size ). {. int *ptr
(還有397個字)