也可以在宣告陣列時初始所有的陣列值,例如: ... i++) { number[i] = i; } for(int i = 0; i < LEN; i++) { cout << number[i] << " "; } cout << endl; return 0; }.
確定! 回上一頁