#include using namespace std; const int SIZE = 100; double A[SIZE]; double get(int i) { return A[i]; } void set(int i, double v) { A[i] = v; } double & element(int i) { return A[i]; } // ------------------------ int main() { cout << get(3) << endl; set(3, 8.5); cout << get(3) << endl; cout << endl; cout << element(3) << endl; element(3) = 3.2; cout << element(3) << endl; }