#include using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ //目的:練習:函數陣列參數的傳遞,可以用*指標,或陣列[] //(1).注意1:陣列名稱就是記憶體位址變數 = 指標 //int a1[]; a1 = *a1 //(2).陣列宣告法: //int socre[3] //(3).陣列指標告法: //int * score3 = new int[3]; double show1(int s[], int n); double show2(int * s, int n); int main(int argc, char** argv) { int score1[3]={85,90,91}; int score2[3]={100,100,93}; int * score3 = new int[3]; score3[0] = 82; score3[1] = 76; score3[2] = 75; double avg = show1(score1, 3); cout<<"第1位同學成績 = "<