# include # include # include using namespace std; int main ( ) // // FEEP_READ reads in the FEEP.ASCII.PGM file, but doesn't do anything with it. // { char c1, c2; int cols, i, j, maxg, p[7][24], rows; ifstream image; image.open ( "feep.ascii.pgm" ); image >> c1 >> c2; image >> cols >> rows; image >> maxg; for ( i = 0; i < rows; i++ ) { for ( j = 0; j < cols; j++ ) { image >> p[i][j]; } } image.close ( ); cout << "The file feep.ascii.pgm was read in.\n"; return 0; }