文件名称:1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.47kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
已知整数a,b,假设函数succ(x)=x+1,pred(x)=x-1,不许直接用‘+’、‘-’运算符号,也不许用循环语句,只能利用函数succ(x)和pred(x),试编写计算a+b,a-b的递归函数add(a,b),snb(a,b),并在主程序中验证该函数的正确性。
-Known integers a, b, assuming the function succ (x) = x+1, pred (x) = x-1, allowed the direct use of' +' ,' -' operational symbol, also not allowed to use the loop, only use the function succ (x) and pred (x), test preparation calculate a+ b, ab recursive function add (a, b), snb (a, b), and in the main program verify the correctness of the function.
-Known integers a, b, assuming the function succ (x) = x+1, pred (x) = x-1, allowed the direct use of' +' ,' -' operational symbol, also not allowed to use the loop, only use the function succ (x) and pred (x), test preparation calculate a+ b, ab recursive function add (a, b), snb (a, b), and in the main program verify the correctness of the function.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1/1.cpp
1/11.cpp
1/12.cpp
1
1/11.cpp
1/12.cpp
1
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.