文件名称:yls
-
所属分类:
- 标签属性:
- 上传时间:2013-07-01
-
文件大小:1.05mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1. 题目
采用顺序存储结构定义实现抽象数据类型NUM。
有理数的抽象数据类型定义如下:
ADT NUM {
数据对象: D = { <a1, a2> |a1, a2∈整数 }
数据关系: R = { <a1, a2> |a1是有理数的分子,a2是有理数的分母,且a2不等于0 }
基本操作:
IniteIpt()
初始条件:输入2~4个数字。
操作结果:生成两个有理数。
plus(first, second)
初始条件:有理数first和有理数second存在。
操作结果:返回有理数first加上second的结果。
reduce(first, second)
初始条件:有理数first和有理数second存在。
操作结果:返回有理数first减去second的结果。
multiplus(first, second)
初始条件:有理数first和有理数second存在。
操作结果:返回有理数first乘上second的结果。
divide(first, second)
初始条件:有理数first和有理数second存在。
操作结果:返回有理数first除以second的结果。
zfs(yls, &fz, &fm)
初始条件:yls为有理数。
操作结果:返回有理数的分子fz和分母fm。
} ADT NUM
-1 topic
Achieved using sequential storage structure defined abstract data types NUM.
Rational abstract data types are defined as follows:
ADT NUM {
Data object: D = {<a1, a2> | a1, a2 ∈ integer}
Data relationship: R = {<a1, a2> | a1 is a rational number of molecules, a2 is the denominator of the rational numbers, and a2 is not equal to 0}
Basic operations:
IniteIpt ()
Initial conditions: Input 2 to 4 digits.
Result: Generate two rational numbers.
plus (first, second)
Initial conditions: rational first and second rational existence.
Result: Returns the result of rational first plus second.
reduce (first, second)
Initial conditions: rational first and second rational existence.
Result: Returns the result of rational first subtracting the second.
multiplus (first, second)
Initial conditions: rational first and second rational existence.
Result: Returns rational first multiplied second result.
divide (first, second)
Initial conditions: rational first and sec
采用顺序存储结构定义实现抽象数据类型NUM。
有理数的抽象数据类型定义如下:
ADT NUM {
数据对象: D = { <a1, a2> |a1, a2∈整数 }
数据关系: R = { <a1, a2> |a1是有理数的分子,a2是有理数的分母,且a2不等于0 }
基本操作:
IniteIpt()
初始条件:输入2~4个数字。
操作结果:生成两个有理数。
plus(first, second)
初始条件:有理数first和有理数second存在。
操作结果:返回有理数first加上second的结果。
reduce(first, second)
初始条件:有理数first和有理数second存在。
操作结果:返回有理数first减去second的结果。
multiplus(first, second)
初始条件:有理数first和有理数second存在。
操作结果:返回有理数first乘上second的结果。
divide(first, second)
初始条件:有理数first和有理数second存在。
操作结果:返回有理数first除以second的结果。
zfs(yls, &fz, &fm)
初始条件:yls为有理数。
操作结果:返回有理数的分子fz和分母fm。
} ADT NUM
-1 topic
Achieved using sequential storage structure defined abstract data types NUM.
Rational abstract data types are defined as follows:
ADT NUM {
Data object: D = {<a1, a2> | a1, a2 ∈ integer}
Data relationship: R = {<a1, a2> | a1 is a rational number of molecules, a2 is the denominator of the rational numbers, and a2 is not equal to 0}
Basic operations:
IniteIpt ()
Initial conditions: Input 2 to 4 digits.
Result: Generate two rational numbers.
plus (first, second)
Initial conditions: rational first and second rational existence.
Result: Returns the result of rational first plus second.
reduce (first, second)
Initial conditions: rational first and second rational existence.
Result: Returns the result of rational first subtracting the second.
multiplus (first, second)
Initial conditions: rational first and second rational existence.
Result: Returns rational first multiplied second result.
divide (first, second)
Initial conditions: rational first and sec
(系统自动生成,下载前可以参看下载内容)
下载文件列表
yls/
yls/Debug/
yls/Debug/IO.obj
yls/Debug/IO.sbr
yls/Debug/divide.obj
yls/Debug/divide.sbr
yls/Debug/input.obj
yls/Debug/input.sbr
yls/Debug/main.obj
yls/Debug/main.sbr
yls/Debug/multiplus.obj
yls/Debug/multiplus.sbr
yls/Debug/plus.obj
yls/Debug/plus.sbr
yls/Debug/reduce.obj
yls/Debug/reduce.sbr
yls/Debug/tset.obj
yls/Debug/vc60.idb
yls/Debug/vc60.pdb
yls/Debug/yls.bsc
yls/Debug/yls.exe
yls/Debug/yls.ilk
yls/Debug/yls.pch
yls/Debug/yls.pdb
yls/IO.CPP
yls/Release/
yls/Release/CL.read.1.tlog
yls/Release/CL.write.1.tlog
yls/Release/IO.obj
yls/Release/cl.command.1.tlog
yls/Release/divide.obj
yls/Release/input.obj
yls/Release/link.command.1.tlog
yls/Release/link.read.1.tlog
yls/Release/link.write.1.tlog
yls/Release/main.obj
yls/Release/mt.command.1.tlog
yls/Release/mt.read.1.tlog
yls/Release/mt.write.1.tlog
yls/Release/multiplus.obj
yls/Release/plus.obj
yls/Release/reduce.obj
yls/Release/vc100.pdb
yls/Release/yls.exe
yls/Release/yls.exe.intermediate.manifest
yls/Release/yls.lastbuildstate
yls/Release/yls.log
yls/divide.asp
yls/divide.cpp
yls/input.cpp
yls/ipch/
yls/ipch/yls-f848269f/
yls/ipch/yls-f848269f/yls-589ab8e.ipch
yls/main.cpp
yls/multiplus.cpp
yls/plus.cpp
yls/reduce.cpp
yls/tset.cpp
yls/yls.dsp
yls/yls.dsw
yls/yls.h
yls/yls.ncb
yls/yls.opt
yls/yls.plg
yls/yls.sdf
yls/yls.sln
yls/yls.suo
yls/yls.vcxproj
yls/yls.vcxproj.filters
yls/yls.vcxproj.user
yls/Debug/
yls/Debug/IO.obj
yls/Debug/IO.sbr
yls/Debug/divide.obj
yls/Debug/divide.sbr
yls/Debug/input.obj
yls/Debug/input.sbr
yls/Debug/main.obj
yls/Debug/main.sbr
yls/Debug/multiplus.obj
yls/Debug/multiplus.sbr
yls/Debug/plus.obj
yls/Debug/plus.sbr
yls/Debug/reduce.obj
yls/Debug/reduce.sbr
yls/Debug/tset.obj
yls/Debug/vc60.idb
yls/Debug/vc60.pdb
yls/Debug/yls.bsc
yls/Debug/yls.exe
yls/Debug/yls.ilk
yls/Debug/yls.pch
yls/Debug/yls.pdb
yls/IO.CPP
yls/Release/
yls/Release/CL.read.1.tlog
yls/Release/CL.write.1.tlog
yls/Release/IO.obj
yls/Release/cl.command.1.tlog
yls/Release/divide.obj
yls/Release/input.obj
yls/Release/link.command.1.tlog
yls/Release/link.read.1.tlog
yls/Release/link.write.1.tlog
yls/Release/main.obj
yls/Release/mt.command.1.tlog
yls/Release/mt.read.1.tlog
yls/Release/mt.write.1.tlog
yls/Release/multiplus.obj
yls/Release/plus.obj
yls/Release/reduce.obj
yls/Release/vc100.pdb
yls/Release/yls.exe
yls/Release/yls.exe.intermediate.manifest
yls/Release/yls.lastbuildstate
yls/Release/yls.log
yls/divide.asp
yls/divide.cpp
yls/input.cpp
yls/ipch/
yls/ipch/yls-f848269f/
yls/ipch/yls-f848269f/yls-589ab8e.ipch
yls/main.cpp
yls/multiplus.cpp
yls/plus.cpp
yls/reduce.cpp
yls/tset.cpp
yls/yls.dsp
yls/yls.dsw
yls/yls.h
yls/yls.ncb
yls/yls.opt
yls/yls.plg
yls/yls.sdf
yls/yls.sln
yls/yls.suo
yls/yls.vcxproj
yls/yls.vcxproj.filters
yls/yls.vcxproj.user
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.