⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c02p059.txt

📁 Data Abstraction & Problem Solving with C++源码
💻 TXT
字号:
int fact(int n)// ---------------------------------------------------// Computes the factorial of a nonnegative integer.// Precondition: n must be greater than or equal to 0.// Postcondition: Returns the factorial of n; n is// unchanged.// ---------------------------------------------------{   if (n == 0)      return 1;   else      return n * fact(n-1);}  // end fact

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -