// this is the code i have so far.
// please lend a hand on this please w your ideas//
#include<iostream>
#include<string>
using namespace std;
const int SIZE=50;
main();
{
ifstream inFile;
float Grades[SIZE];
int SumOfGrades[SIZE];
int index 0; index 1; index 2; index 3; index 4; index 5; index 6; index 7; index 8; index 9;
infile.open("grades.txt");
int SIZE=50;
{
if(infile)
cout << "infile did not open" << endl;
return 1;
}
for (int i=0; i< SIZE; i++)
{
infile Grades[i];
}
return 0;
bilbo2 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.