#include <iostream>
#include<vector>
usingnamespace std;
//Declare variables
int GetInput()
{
int userinput;
cout << "Please enter the the size of your file ";
cin >> userinput;
return userinput;
}
//end function
/*
int GreatestInput()
{
int Greatest;
int j = 0;
//loop once for every input
for(int j);
j < Files.size() ;
j++)
{
if (Files[j] > Greatest])
{
Greatest = Files[j]
}//end if
}//end for
return Greatest;
}
*/
int main()
{
bool stop = false;
vector<int> filelist;
string stopstring;
int userinput;
int greatest
while (stop == false)
{
userinput = GetInput();
filelist.push_back(userinput);
cout << "would you like to enter again? ('yes' or 'no'";
cin >> stopstring;
if (stopstring = "no")
stop = true;
else
stop = false;
}
//run the get greatest function
Greatest = GreatestInput();
//display the greatest on the screen
cout << "The largest file is " << Greatest << " MB";
return 0;
}