Friend with class but can't access private members?

1 it's funny how the most simpliest thing is the most hardest to find... – starcorn Jul 17 '10 at 10:26.

The signatures don't match. Your non-member function takes fun& fun, the friend declared on takes const fun& fun.

You can avoid these kinds of errors by writing the friend function definition inside the class definition: class fun { //... friend ostream& operator(Also note that the parameter cannot be called fun because that name already denotes a type. ).

I've included my . H file with the operator.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions