鱼C论坛

 找回密码
 立即注册
查看: 1873|回复: 2

C语言和C++作业求助,谢谢各位

[复制链接]
发表于 2014-3-11 17:48:02 | 显示全部楼层 |阅读模式
30鱼币
本帖最后由 seal@heu 于 2014-3-18 16:47 编辑

1.
Write a C language program which converts the first letter of each word to uppercase. Your input must
come from standard input. The processed lines of the text must be printed onto standard output.
You must provide an algorithm in the form of a pseudocode in a file ass1a1.txt. All your source code
must be given in a file ass1q1.cpp.


2.
Write a C++ function called merge which take two sorted arrays of integers and efficiently merge the
sorted arrays to produce a single sorted array. The function prototype of the function must be as
follows:
    void merge(int outArray[], int inArray1[], int inArray2[], int inArray1Size, int inArray2Size)

You can assume that outArray has sufficient size. You must provide your function and the driver
program (i.e. a test program) in a file ass1q2part1.cpp. Provide the algorithm of the merge function in a
text file ass1q2part1.txt.

Now consider your own C++ class called BigNumber which can work with of three times the size of
typical C++ integers. Provide the definition of such a C++ class. Your class should have a member
function called lessThan which takes another BigNumber as an argument and compares with itself. The
function returns true if the argument is larger and otherwise it returns false. You must provide at least
one constructor which sets the BigNumber in addition to the member function lessThan. Provide an
updated merge function similar to above merge function, which can merge arrays of sorted BigNumbers.
Provide a driver program. All the source code must be provided in a file ass1q2part2.cpp.

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2014-3-21 23:34:12 | 显示全部楼层
你的作业竟然是英文的。。帮不了你了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2015-8-7 15:44:35 | 显示全部楼层
{:1_1:}
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-11-26 05:32

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表