// File: io3.C // // Demonstrating simple I/O in C++ // Entering a bunch of integers #include #include // for endl, setw(), etc #include // for INT_MAX constant, etc #define LEN 5 main() { int A[LEN], i ; cout << "Enter integers into array A:" << endl ; for (i = 0 ; i < LEN ; i++) { cout << "? " ; cin >> A[i] ; } for (i = 0 ; i < LEN ; i++) { cout << "A[" << i << "] = " << A[i] << endl ; } }