英语翻译Write a class presents a fraction number like 2/3.Functions below have to be implemented for this class:default ctor ctor takes two integers as parameters copy ctor arithmetical operators:+ - * / relational operators:< = > type cast to do
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 17:56:26
英语翻译Write a class presents a fraction number like 2/3.Functions below have to be implemented for this class:default ctor ctor takes two integers as parameters copy ctor arithmetical operators:+ - * / relational operators:< = > type cast to do
英语翻译
Write a class presents a fraction number like 2/3.
Functions below have to be implemented for this class:
default ctor
ctor takes two integers as parameters
copy ctor
arithmetical operators:+ - * /
relational operators:< = >
type cast to double
toString
inserter and extractor for streams
英语翻译Write a class presents a fraction number like 2/3.Functions below have to be implemented for this class:default ctor ctor takes two integers as parameters copy ctor arithmetical operators:+ - * / relational operators:< = > type cast to do
收件一类分数提出了一些像2 / 3 .
以下功能都必须执行本级:
默认器
器两个整数作为参数
复制器
算术操作符:+ -* /
关系运算符:“ ” = == != “ = ”
型演员将翻一番
toString
插入和解压流