当调用具有在其他函数中获得的要求的函数时,在整个函数调用中对其中一个要求进行函数调用是好是坏?我做了这个简单的例子来演示:intamountToMultiplyBy(intmultiplyAmount){inttemp;std::cout>temp;multiplyAmount=temp;returnmultiplyAmount;}voidsumOfNumbers(intnumOne,intnumTwo,intmultiplyAmount){std::cout主要版本1:intmain(){intmultiplyAmount;sumOfNumbers(5,10,amountToMult