// q23.cpp

#include <iostream>
#include <fstream>
using namespace std;

int main(void)
{
  

}
// read up to 100 items from a file called "scores.dat"
// return number of items read

// ALSO CORRECT: int readIntoArray( int *array )
// ALSO CORRECT: int readIntoArray( int array[100] )
// POSSIBLY CORRECT: int readIntoArray( int & array[100] )
// WRONG: int readIntoArray( int * array[100] )

int readIntoArray( int array[] )
{

#ifdef WRONG
  infile = ifstream ("scores.dat",ios::in); // WRONG
  ifstream scores.dat; // WRONG
#endif


  ifstream infile("scores.dat",ios::in); // correct
  
  if (!infile)
    {
      cerr << "oops";
      exit(-1);
    }



}


int readIntoArrayFromFile( istream &infile , int array[] )
{
  


}

