#include <iostream.h>#include <iomanip.h>#include <stdlib.h>#include <assert.h>#include "array1.h"Go to the source code of this file.
Functions | |
| istream & | operator>> (istream &input, Array &a) |
| ostream & | operator<< (ostream &output, const Array &a) |
|
||||||||||||
|
Definition at line 116 of file ArrayInt.cpp. 00117 {
00118 int i;
00119
00120 for ( i = 0; i < a.size; i++ ) {
00121 output << setw( 12 ) << a.ptr[ i ];
00122
00123 if ( ( i + 1 ) % 4 == 0 ) // 4 numbers per row of output
00124 output << endl;
00125 }
00126
00127 if ( i % 4 != 0 )
00128 output << endl;
00129
00130 return output; // enables cout << x << y;
00131 }
|
|
||||||||||||
|
Definition at line 107 of file ArrayInt.cpp. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001