// Array initialization --- Arrays can be initialized like other variables // #include #include using namespace std; int main() { const short MAX_POINTS = 10; float numbers[MAX_POINTS] = { 1.12, 2.1345, 3.1, 4.234, 5.599, 6.111111 }; cout.setf( ios::showpoint ); // Always show decimal point cout.setf( ios::fixed ); // Always use fixed point notation cout.precision(3); // See page 501 for other manipulators for ( short i = 0; i < MAX_POINTS; i++ ) { cout << "numbers[" << i << "] = " << numbers[i] << "\n"; } cout << "\n\n"; system( "PAUSE" ); return( EXIT_SUCCESS ); }