c02p104.txt
来自「Data Abstraction & Problem Solving with 」· 文本 代码 · 共 13 行
TXT
13 行
// Self-Test 1double product(const double anArray[], int n)// Precondition: 1 <= n <= max size of anArray.// Postcondition: Returns the product of the first n// items in anArray; anArray is unchanged.{ if (n == 1) return anArray[0]; else return anArray[n-1] * product(anArray, n-1);} // end product
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?