結果 : create a function inside a function c++