这道简单的3级题把我弄晕了
题目74:函数READDAT()实现从文件IN.DAT中读取一篇英文文章存入到字符串数组XX中;请编制函数StrCharJL(),其函数功能是:以行为单位把字符串中的所有字符的ASCII值左移4位,如果左移后,其字符的ASCII值小于等于32或大于100,则原字符保持不变.否则就把左移后的字符ASCII值再加上原字符的ASCII值,得到新的字符仍存入原字符串对应的位置上。最后把已处理的字符串仍按行重新存入字符串数组XX中,最后调用函数WRITEDAT()把结果XX输出到文件OUT7.DAT文件中.原始数据文件存放的格式是:每行的宽度均小于80个字符(含标点符号和空格).IN.DAT
Madame Curie
Madame Curie was born in Warsaw in 1867. She was the daughter of a professor of physics and mathematics. As a young girl she left Poland and studied science at paris University. Soon she met the French scientist, Pierre Curie, and they got married in 1895.
They were both very poor, so they had to work in an laboratory. But they discovered two new elements. One was called polonium because Marie came from Poland. The other was called radium.
In 1926 pierre was killed in an accident. Marie was very sad, but her work went on. She won two Nobel prizes, in 1903 and in 1901. she died in 1934.
[[it] 本帖最后由 Oscar_0049 于 2008-3-29 11:49 编辑 [/it]]