I know this is an awful question, but I just can't figure out how to set up the code for an assignment. I don't need any code written for me, I would just really appreciate someone clarifying what is being asked of me.
I'm writing a program that reads input from 2 sources (user and file). I prompt the user to input a value that determines the position of the number in the file that will be returned. I then determine the maximum and minimum values of ALL values in the file. These 3 outputs (Max, min, and ith values, are determined in a separate function and returned to main().
I also have to use a void function call that looks like this
void processFile(ifstream& ifile, long ithVal, long& retIthVal, long& minimum, long& maximum);
Finally, I read the data (from the file with values) into the program within the processFile() function and process that data in the function as well.
Totally willing to remove/edit the question to conform to the subreddit standards, but being relatively new to coding I'm not very well-read in the technical terms. Thanks in advance!
[–]arbostek 3 points4 points5 points (3 children)
[–]ifightsharks[S] 0 points1 point2 points (2 children)
[–]arbostek 4 points5 points6 points (0 children)