結果 : defining a function in cpp