// print
header for output
void
printHeader( int size )
{
cout << "\nSubscripts:\n";
// output column heads
for ( int j = 0; j < size; j++ )
cout << setw( 3 )
<< j << ' ';
cout << '\n'; // start new line of output
// output line of - characters
for ( int k = 1; k <= 4 * size;
k++ )
cout << '-';
cout << endl; // start new line of output
} // end function printHeader