結果 : friend function algorithm in c++