File open in array

how do i get a file to open its content into my array.
#include <iostream>
#include <string>
#include <cmath>
#include <fstream>

using namespace std;
const int SIZE = 500;
int minimum(int [], int);
int maximum(int [], int);
double averge(int [], int);
float standard(int [], int, double);
void Quartiles(int [], int, int &);
int main()
{
ifstream inFile;
const int SIZE = 5;
int scores[SIZE]={inFile.open("array_pgrdata.txt")};
int high, low, compares;
float standDev;
double average;
average = averge(scores, SIZE);
high = maximum(scores, SIZE);
low = minimum(scores, SIZE);
standDev = standard(scores, SIZE, average);
cout<< "The Average is: "<< average << endl;
cout<< "The Maximum number is " << high<<endl;
cout<< "The Minimum number is "<< low<<endl;
cout<< "The Stand Deviation is " << standDev<<endl;
Quartiles(scores, SIZE, compares);
system("pause");
return 0;
}
Topic archived. No new replies allowed.