Someone Comment Code Explain Detail Exactly Working Learning Arrays Saw Example Please De Q37063377

Can someone comment through this code and explain to me indetail how exactly it is working? I am just now learning aboutarrays and saw this example on here. Please be detailed about howthe variables/arrays are working.

#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>

using namespace std;

// constant variable declaration
const int COUNT = 5;
const int DAYS = 7;

// This functions tores the names of runners and number of milsrun each day
void inputData(string names[], int sizeOfName, doublenumOfMiles[][DAYS], int rowSize)

{
   //Create input file name
   ifstream infile;
   infile.open(“Data.txt”);
   int checkNames = 0, checkMiles = 0;

   while (checkNames < sizeOfName)
   {
       infile >>names[checkNames];
       while (checkMiles < DAYS)
  

OR
OR

Leave a Comment

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