Want Main Function Bottom Top Move Top Doesn T Work Could Fix Also Want Know Way Make Inpu Q37172713

I want the main function that is at the bottom to be at the top,but when I move it to the top it doesn’t work, how could I fix thisand I also want to know if there is a way to make it to where ifthe input file were to have additonal information put into it theprogram would still work?

** The program takes an input file containing runners names andthe miles they run and output their name, total miles run, and avgmiles ran**

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

using namespace std;

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

//

OR
OR

Leave a Comment

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