栈  0.1
数据结构_第3章
ch3_7.cc File Reference

Ackerman函数的递归和非递归实现 More...

#include "Ackermann.hh"
Include dependency graph for ch3_7.cc:

Go to the source code of this file.

Functions

int main (int argc, char const *argv[])
 Ackermann类测试例程 More...
 

Detailed Description

Ackerman函数的递归和非递归实现

Author
Guorui Wei (31301.nosp@m.7602.nosp@m.@qq.c.nosp@m.om)
Version
0.1
Date
2020-04-05

Definition in file ch3_7.cc.

Function Documentation

◆ main()

int main ( int  argc,
char const *  argv[] 
)

Ackermann类测试例程

Parameters
argc命令行参数的个数
argv命令行参数的内容
Returns
int 返回0表示程序正常结束, 返回1表示程序异常终止
Example 1:
.bin/ch3_7
Example 2:
.bin/ch3_7 3 11 -s
Note
命令行arg3含义:
  • -s 指定使用堆栈
  • -r 指定使用系统栈
  • 省略或其他 使用两种方法

Definition at line 36 of file ch3_7.cc.

References Akm_t::Akm_loop(), and Akm_t::Akm_rec().

Here is the call graph for this function: