Included Files Maincpp Include Specialarrayh Include Include Include Using Namespace Std I Q37192508

Homework 8 Instructions In this homework, you will be using a template class to read in data from an input file and manipulat

6. A function called min with empty argument list that returns the value of minimum element in the array. 7. A function calle

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.