Can anybody help me correct this program ? there are 6 errors in this programs, i use my dev run and know the errors but i just dont know how to correct it.
// Debug Program -- there are 6 errors in this program
// Correct this program
#include <iostream>
#include <iomanip>
using namespace std;
void readData(ifstream& inputFile, int list[], int size);
void holdscrn( ); // void function to hold screen open before exit
int main()
{
int scores[8] = {0};
ifstream infile;
infile.open("TestScoresData.txt");
if (infile)
{
cout << "Cannot open the input file. Program terminates!"
<< endl;
holdscrn( ); // Hold screen before exit
return 1;
}
void holdscrn( ) // void function to hold screen open before exit
{
char holdscreen;
cout << "\n\n\tEnter one character and press return to exit program: ";
cin >> holdscreen;