In class, I tried to hide the fact that I couldn't read. My teachers gave us the last 10 minutes of class to start our reading homework, and I would sit there for the last ten minutes of class staring at the page, pretending I was reading it. I remember a terrible feeling of not wanting to get into trouble for not being able to understand. I had to wait until I got home so my mother could explain it to me. How did I ever get into Cornell University?
By eighth grade I started understanding a little on my own, but I was reading at a very slow speed. In eighth grade, I got hold of all the speed-reading books I could get my hands on. I read them all very slowly at the time. I even went out and took a course on speed-reading. Then I developed my own way which was easier and produced quicker results. I started practicing these techniques every day, and as I started to read faster, my understanding increased. I found that I stopped daydreaming and thinking about other things while I was reading, and started getting the larger meaning. I was reading faster and comprehending better.
I found that when you read slowly, word-by-word, you get lost in the words, lose the bigger picture, and your comprehension drops. When you read faster, your comprehension goes up because instead of getting lost in the words, you see the general picture.
The main difficulty the writer had in reading in her 7th grade was that ______.
A.she often forgot her school reading assignments
B.she had difficulty reading with comprehension
C.she had a poor vocabulary and very bad grammar
D.she always looked elsewhere when asked to read
第1题
函数ReadDat()的功能是实现从文件IN7.DAT中读取一篇英文文章存入到字符串数组xx中。请编制函数SortCharD(),该函数的功能是:以行为单位对字符按从大到小的顺序进行排序,排序后的结果仍按行重新存入字符串数组xx中,最后调用函数WriteDat()把结果xx输出到文件OUT7.DAT中。
例如,原文:dAe,BfC
CCbbAA
结果:fedCBA,
bbCCAA
原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。
注意:部分源程序已给出。
请勿改动主函数main()、读函数ReadDat()和写函数WriteDat()的内容。
第2题
函数ReadDat()的功能是实现从文件IN5.DAT中读取一篇英文文章存入到字符串数组xx中。请编制函数ConvertCharA(),该函数的功能是:以行为单位把字符串中的所有小写字母改写成该字母的下一个字母,如果是字母z,则改写成字母a。大写字母仍为大写字母,小写字母仍为小写字母,其他字符不变。把已处理的字符串仍按行重新存入字符串数组xx中,最后调用函数WriteDat()把结果xx输出到文件OUT5.DAT中。
例如,原文:Adb.Bcdza
abck.LLhj
结果:Aec.Bdeab
bcdl.LLik
原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。
注意:部分源程序已给出。
请勿改动主函数main()、读函数ReadDat()和写函数WriteDat()的内容。
第3题
函数ReadDat()的功能是实现从文件IN74.DAT中读取一篇英文文章存入到字符串数组xx中。请编制 6数StrCharJL(),该函数的功能是:以行为单位把字符串中的所有字符的ASCII值左移4位,如果左移后, (字符的ASCII值小于等于32或大于100,则原字符保持不变,否则就把左移后的字符ASCII值再加上原字符的ASCII值,得到的新字符仍存入到原字符中对应的位置。最后把已处理的字符串仍按行重新存入了符串数组xx中,最后调用函数WritcDat()把结果n输出到文件OUT74.DAT中。
注意:部分源程序已给出。
原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。
请勿改动主函数main()、读函数ReadDat()和写函数WriteDat()的内容。
试题程序:
include<stdio. h>
include<string. h>
include<conio. h>
char xx[50][80];
int maxline=0;
int ReadDat(void);
void WriteDat(void);
void StrCharfL(void)
{
}
void main()
{
Clrscr();
if(ReadDat())
{
printf (“数据文件IN74.DAT不能打开\n\007”);
return;
}
StrCharJL();
WriteDat();
}
int ReadDat(void)
{
FILE *fp;
int i=0;
char *p;
if((fp=fopen(“IN74.DAT”,“r”))==NULL) return 1;
while(fgets(xx[i],80,fp)!=NULL)
{
p=strchr(xx[i],'\n');
if (p) *p=0;
i++;
}
maxline=i;
fclose(fp);
return 0;
}
void WriteDat(void )
{
FILE *fp;
int i;
clrscr();
fp=fopen("OUT74.DAt","w");
for(i=0;i<maxline;i++)
{
printf(”%s\n”,xx[i]);
fprintf(fp,"%s\n",xx[i]);
}
fclose(fp);
}
第4题
函数ReadDat()的功能是实现从文件IN88.DAT中读取一篇英文文章存入到字符串数组xx中。请编制函数SortCharA(),该函数的功能是:以行为单位对字符按从小到大的顺序进行排序,排序后的结果仍按行重新存入字符串数组xx中。最后调用函数WriteDat()把结果xx输出到文件OUT88.DAT中。
例如,原文:dAe,BfC
CCbbAA
结果:ABCdef
AACCbb
原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。
注意:部分源程序已给出。
请勿改动主函数main()、读函数ReadDat()和写函数WriteDat()的内容。
试题程序:
include<stdio.h>
include<string.h>
include<conio.h>
char xx[50] [80];
int maxline=0;
int ReadDat(void);
void WriteDat(void);
void SortCharA ()
{
}
void main()
{
clrscr();
if (ReadDat())
{
printf ("数据文件IN88.DAT不能打开! \n\007");
return;
}
SortCharA();
WriteDat();
}
int ReadDat(void)
{
FILE *fp;
int i=0;
char *p;
if((fp=fopen("IN88.DAT","r"))==NULL)
return 1;
while(fgets(xx[i],80,fp) !=NULL)
{
p=strchr(xx[i],'\n');
if (p) *p=0;
i++;
}
maxline=i;
fclose(fp);
return 0;
}
void WriteDat()
{
FILE *fp;
int i;
clrscr();
fp=fopen("OUT88.DAT","w");
for(i=0;i {
printf("%s\n",xx[i]);
fprintf(fp,"%s\n",xx[i]);
}
fclose(fp);
}
第5题
第6题
函数ReadDat()的功能是实现从文件IN2.DAT中读取一篇英文文章存入到字符串数组xx中:请编制函数 StrOL(),该函数的功能是:以行为单位对行中以空格或标点符号为分隔的所有单词进行倒排。最后把已处理的字符串(应不含标点符号)仍按行重新存入字符串数组xx中,最后调用函数WriteDat()把结果xx输出到文件OUT2.DAT中。
例如:原文:YOU He Me
I am a student.
结果: Me He You
student a am I
原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。
请勿改动主函数main()、读函数ReadDat()和写函数WriteDat()的内容。
include <stdio.h>
include <string.h>
include <conio.h>
include <ctype.h>
char xx[50] [80];
int maxline = 0;/* 文章的总行数 */
int ReadDat (void);
void WriteDat (void);
void StrOL(void)
{
main ()
{
clrscr ();
if (ReadDat ())
{
printf("数据文件 IN2.DAT不能打开! \n\007");
return;
}
StrOL ();
WriteDat ();
}
int ReadDat (void)
{
FILE *fp;
int i = 0;
char *p;
if((fp = fopen("IN2.DAT", "r")) == NULL) return 1;
while(fgets(xx[i], 80, fp) != NULL)
{
p = strchr(xx [i], '\n');
if(p) *p = 0;
i++;
}
maxline = i;
fclose (rD):
return 0;
}
void WriteDat (void)
{
FILE*fp;
int i;
clrscr ();
fp = fopen("OUT2.DAT", "w");
for(i = 0; i < maxline; i++)
{
printf("%s\n", xx[i]);
fprintf(fp, "%s\n", xx[i]);
}
fclose (fp);
}
第7题
函数ReadDat()的功能是实现从文件IN8.DAT中读取一篇英文文章存入到字符串数组xx中:请编制函数StrCharJP(),该函数的功能是:以行为单位把字符串中的所有字符的ASCII值右移4位,然后把右移后的字符的ASCII值再加上原字符的ASCII值,得到新的字符,并存入原字符串对应的位置上。最后把已处理的字符串按行重新存入字符串数组xx中,并调用函数WriteDat()把结果xx输出到文件OUT8.DAT中。原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。
注意:部分源程序已给出。
请勿改动主函数main()、读函数ReadDat()和写函数WriteDat()的内容。
试题程序:
include<stdio.h>
include<String.h>
include<conio.h>
char xx [50] [80];
int maxline=0;/* 文章的总行数 */
int ReadDat(void);
void WriteDat(void);
void StrCharJR(void)
{
}
main()
{
Clrscr();
if(ReadDat())
{
printf("数据文件IN8.DAT不能打开!\n\007");
return;
}
StrCharJR();
WriteDat ();
}
int ReadDat (void)
{
FILE *fp;
int i= 0;
char *p ;
if ((fp = fopen("IN8.DAT", "r") ) = =NULL) return 1;
while(fgets(xx[i] , 80, fp) !-NULL)
{
p = strchr(xx[i], '\n') ;
if (p) *p = 0;
i++;
}
maxline = i;
fclose (fp);
return 0;
}
void WriteDat (void)
{
FILE *fp;
int i;
clrscr ();
fp = fopen("OUTS.DAT", "w");
for(i = 0; i < maxline; i++)
{
printf("%s\n", xx[i] );
fprintf(fp, "%s\n", xx[i] );
}
fclose(fp);
}
第8题
第9题
函数ReadDat()的功能是实现从文件IN35.DAT中读取一篇英文文章存入到字符串数组xx中。请编制函数$ortCharD(),该函数的功能是:以行为单位对字符按从大到小的顺序进行排序,捧序后的结果仍按行重新存入字符串数组xx中,最后调用函数WriteDat()把结果xx输出到文件OUT35.DAT中。
例如,原文:dAe,BfC
CCbbAA
结果:fedCBA,
bbCCAA
原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。
注意:部分源程序已给出。
请勿改动主函数main()、读函数ReadDat()和写函数WriteDat()的内容。
试题程序:
include<stdio.h>
include<string.h>
include<conio.h>
char xx[50] [80];
int maxline=0;
int ReadDat(void);
void WriteDat(void);
void SortCharD()
{
}
void main()
{
clrscr();
if (ReadDat())
{
printf ("数据文件 IN35.DAT 不能打开!\n\007 ");
return;
}
SortCharD();
WriteDat();
}
int ReadDat(void)
{
FILE *fp;
int i=0;
char *p;
if((fp=fopen("IN35.DAT","r"))==NULL)
return 1;
while (fgets(xx[i],80,fp)!=NULL)
{
p=strchr(xx[i],'\n');
if (p) *p=0;
i++;
}
maxline=i;
fclose(fp);
return 0;
}
void WriteDat()
{
FILE *fp;
int i;
clrscr();
fp=fopen("OUT35.DAT","w");
for(i=0;i<maxline;i++)
{
printf ("%s\n",xx[i]);
fprintf(fp,"%s\n',xx[i]);
}
fclose(fp);
}
第10题
函数ReadDat()的功能是实现从文件IN35.DAT中读取一篇英文文章存入到字符串数组xx中。请编制函数SortCharD(),该函数的功能是:以行为单位对字符按从大到小的顺序进行排序,排序后的结果仍按行重新存入字符串数组xx中,最后调用函数WriteDat()把结果xx输出到文件OUT35.DAT中。
例如,原文:dAe,BfC
CCbbAA
结果:fedCBA,
bbCCAA
原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。
注意;部分源程序已给出。
请勿改动主函数main()、读函数ReadDat()和写函数WrteDat()的内容。
试题程序:
include<Stdio.h>
include<String.h>
include<conio.h>
char xx[50][80];
int maxline=0;
int ReadDat(void);
void WriteDat(void);
void SortCharD()
{
}
void main()
{
Clrscr();
if (ReadDat())
{
printf("数据文件 IN35.DAT不能打开!\n\007");
return;
}
SortChar D();
WriteDat();
}
int ReadDat(void)
{
FILE *fp;
int i=0;
Char*p;
if((fp:fOpen("IN35.DAT","r"))==NULL)
return 1;
while (fgets(xX[i],80,fp)!=NULL)
{
p=strchr(xX[i],"\n");
if (p) *p:0;
i++;
}
maxline=i;
fclose(fp);
return 0;
}
void WriteDat()
{
FILE *fp;
int i;
Clrscr();
fp:fopen("OUT35.DAT","w");
for(i:0;i<maxline;i++)
{
printf("%s\",xx[i]);
fprintf(fp,"%s\n",xx[i]);
}
fclose(fp);
}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!