|
|
1.1 ! root 1: // exios102.cpp ! 2: // The width member function ! 3: #include <iostream.h> ! 4: ! 5: void main() ! 6: { ! 7: double values[] = { 1.23, 35.36, 653.7, 4358.24 }; ! 8: for( int i = 0; i < 4; i++ ) ! 9: { ! 10: cout.width(10); ! 11: cout << values[i] << '\n'; ! 12: } ! 13: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.