結果 : define function inside a function c++