using namespace std;
/*here we are passing sample as argument as we are going to pass objects as argument
this is the syntax of Passing Objects as Function Arguments*/
friend float mean(sample);
cout<<“Enter two numbers”;
//here we are passing x with sample as we are Passing Object(t) as Function Arguments.
float mean(sample x)
//we can not write mean(s) as s.mean as this is the friend function.