C++數組(指針)作爲函數參數

本文的學習內容參考:http://blog.csdn.net/wwdlk/article/details/6322843 1.當用數組名作爲函數參數時,函數的實參和形參都應爲數組名(或者指針); Example1:有一個一維數組score,內放10個學生成績,求平均成績。 #include<iostream> using namespace std; float average(float ar
相關文章
相關標籤/搜索