初级C题翻译..

来源:百度知道 编辑:UC知道 时间:2024/05/26 11:04:05
1> write the program addition, which get two integer operators from the command-line arguments and output result. For example, following command line
d> addition 34 72
evaluates 34+72

2> write the function InsertSt(),which sorts integers in increasing order according to insertion sort algorithm.
烦请翻译成中文...容易理解点的

1. 写一个加法程序, 从命令行作为参数输入2个整数,然后输出计算结果.例如:

addition 34 72 [ addition 是 加的意思, 34,72 是2个整数参数]

evaluates 34+72 [evaluates 是 估算数值的意思, 34+72 是参数,含加号和2个整数].

2. 写一个insertSt函数,用插入并分类的算法,把所有(整)数从小到大排列.

in increasing order -- 按从小到大递增的次序
according to insertion sort algorithm -- 根据插入分类算法