0

I need some help with functions

Void output(int a[],int &n) { Ofstream fout(doc.txt) fout << average of all numbers<<endl; For(int i = 0; i < n ;i++) Fout << how to type average function? <<endl; Fout.close(); } Does anyone know how to type a name of separe function so that i would get answer in my txt file.i need to calculate average of four numbers .probably i am doing something wrong but dont realy know what .in input file everything seems fine .its just something with average function doesent work.

8th Nov 2019, 3:43 PM
Evaldas
Evaldas - avatar
8 odpowiedzi
+ 1
No prob kira .i solved everything.i am quite new here .it took me some time.i just made to many newbie mistakes
9th Nov 2019, 2:21 PM
Evaldas
Evaldas - avatar
+ 1
I can try .two heads work better than one.
9th Nov 2019, 2:23 PM
Evaldas
Evaldas - avatar
+ 1
Sorry i dont know python yet.i will start on it only after new year.
9th Nov 2019, 2:30 PM
Evaldas
Evaldas - avatar
0
Unfortuanutely can't help. 😐
9th Nov 2019, 2:20 PM
Kira Salisbury
0
I am too. Do you think you could help me?
9th Nov 2019, 2:22 PM
Kira Salisbury
9th Nov 2019, 2:25 PM
Kira Salisbury
0
My mum gave me the challenge
9th Nov 2019, 2:26 PM
Kira Salisbury
0
Okay.
9th Nov 2019, 2:30 PM
Kira Salisbury