how to rewrite an output to get average

Feb 15, 2010 at 7:02am
oooooooooo i got it
Last edited on Feb 18, 2010 at 3:52pm
Feb 15, 2010 at 7:54am
I'm not sure exactly what your problem is. I'm getting that you need some help with your output functions but beyond that I can't understand what you are asking.
Feb 15, 2010 at 7:58am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
void output(const char name[], double average, ostream& os) // Print results
{ 
    os << "\n\nInput your File Name : " << name << endl;
    os << "The average : " << setw(8) << average<< endl;
    //make a new text file here and store the output to the file, example 10.txt
    //to print the previous text file just open the most recent made file. 
}



void output(const char name[], int highest, int lowest, ostream& os) // Print results
{  
    os << "Largest Number in File : " << setw(8) << highest << endl;
    os << "Smallest Number in File: " << setw(8) << lowest << endl;
    //make a new text file code here then store this output to it, example 9.txt.
    //then if you want to get the previous output just open the file.  
}
Last edited on Feb 15, 2010 at 7:59am
Feb 15, 2010 at 8:05am
yes just the output function
Topic archived. No new replies allowed.