結果 : write a c++ program to implement friend function