文件名称:sizayunsuan
介绍说明--下载内容均来自于网络,请自行研究使用
四则运算之加减法--C语言编程
计算机所能完成的一个基本功能就是完成数据的计算,譬如加法、减法等等。但是在任何一种计算机上,计算中能够使用的数字都是有一定范围的,超过了范围,就没法得到精确的结果。
你现在接受了一个任务,要编写一个高精度计算器的核心部分。所谓高精度计算器,就是可以计算很大很大的数据的计算器。而你所需要编写的程序,就是真正完成高精度加法和高精度减法运算的两个函数,因为程序其它的部分已经由别人编写好了。
函数的输入、输出接口也已经定义完成,譬如 plus() 函数,它有三个参数 a、b 和 c,都是 char * 类型。a 和 b 分别是参加运算的两个整数,而 c 用来存放运算的结果。所有的数字都是以字符串的形式保存的。
注意,只需提交你自己编写的两个函数。-Four operations of addition and subtraction!
The computer can complete a basic function is to complete the calculation of the data, such as addition, subtraction, and so on. However, on any kind of computer, the numbers that can be used in the calculation are a range of more than the range, it can not get accurate results.
You accept a task to write the core part of a high-precision calculator. The so-called high-precision calculator that can calculate the great data calculator. You need to write a program, is truly complete precision addition and subtraction of two high-precision function, because the other part of the program has been written by someone else.
The function of the input, and output interface has also been defined, for example, plus () function, it has three parameters a, b and C are the type char*. a and b are to participate in the operation of the two integers, and c used to store the result of the operation. All numbers are saved in the form of
计算机所能完成的一个基本功能就是完成数据的计算,譬如加法、减法等等。但是在任何一种计算机上,计算中能够使用的数字都是有一定范围的,超过了范围,就没法得到精确的结果。
你现在接受了一个任务,要编写一个高精度计算器的核心部分。所谓高精度计算器,就是可以计算很大很大的数据的计算器。而你所需要编写的程序,就是真正完成高精度加法和高精度减法运算的两个函数,因为程序其它的部分已经由别人编写好了。
函数的输入、输出接口也已经定义完成,譬如 plus() 函数,它有三个参数 a、b 和 c,都是 char * 类型。a 和 b 分别是参加运算的两个整数,而 c 用来存放运算的结果。所有的数字都是以字符串的形式保存的。
注意,只需提交你自己编写的两个函数。-Four operations of addition and subtraction!
The computer can complete a basic function is to complete the calculation of the data, such as addition, subtraction, and so on. However, on any kind of computer, the numbers that can be used in the calculation are a range of more than the range, it can not get accurate results.
You accept a task to write the core part of a high-precision calculator. The so-called high-precision calculator that can calculate the great data calculator. You need to write a program, is truly complete precision addition and subtraction of two high-precision function, because the other part of the program has been written by someone else.
The function of the input, and output interface has also been defined, for example, plus () function, it has three parameters a, b and C are the type char*. a and b are to participate in the operation of the two integers, and c used to store the result of the operation. All numbers are saved in the form of
(系统自动生成,下载前可以参看下载内容)
下载文件列表
四则运算之加减法.cpp