Included Files:
main.cpp:
#include “SpecialArray.h”
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int measureElementsPerLine(ifstream& inFile) {
// Add your code here.
}
int measureLines(ifstream& inFile) {
// Add your code here.
}
int main()
{
int numOfLines, numOfElements;
string fileName, dataType;
cin >> fileName >> dataType;
ifstream inFile(fileName);
// Add try statement below
numOfElements = measureElementsPerLine(inFile);
inFile.close();
inFile.open(fileName);
numOfLines = measureLines(inFile);
inFile.close();
if
OR
OR