函数ReadDat()实现从文件in.dat中读取一篇英文文章并将其存入到字符串数组xx中。请编制函数StrOL(),其函数的功能是:以行为单位对行中以空格或标点符号为分隔的所有单词进行倒排。最后把已处理的字符串(应不含标点符号)仍按行重新存入字符串数组XX中,最后调用函数WriteDat()把结果xx输出到文件out.dat中。例如:原文:You He MeI am s student.结果:Me He Youstudent 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){}void main(){system("cls");if(ReadDat()){printf("数据文件IN.DAT不能打开!\n\007");return;}StrOL();WriteDat();}int ReadDat(void){FILE*fp;int i=0;char*P;if((fp=fopen("IN 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;system("cls");fp=fopen("OUT.DAT","w");for(i=0;i<maxline;i++){printf("%s\n",xx[i]);fprintf(fp,"%s\n",xx[i]);}fclose(fp);}
查看答案
患者发病急骤,黄疸迅速加深,色黄如金,高热烦渴,胁痛腹满,神昏谵语,舌质红绛,脉弦数。其旺候是
A. 阳黄之热重于湿
B. 阳黄之湿重于热
C. 急黄
D. 阴黄
E. 胆腑郁热
设有关系模式R (课程,教师,学生,成绩,时间,教室),其中函数依赖集F如下: F={课程→→教师,(学生,课程)→成绩,(时间,教室)→课程, (时间,教师)→教室,(时间,学生)→教室}关系模式R的一个主键是(54),R规范化程度最高达到(55)。若将关系模式R分解为3个关系模式R1(课程,教师)、R2(学生,课程,成绩)、R3(学生,时间,教室,课程),其中R2的规范化程度最高达到(56)。 (56)处填()。
A. 2NF
B. 3NF
C. BCNF
D. 4NF
Questions 53 to 57 are based on the following passage: The Internet can make the news more democratic, giving the public a chance to ask questions and seek out facts behind stories and candidates, according to the head of the largest US on-line service. ’But the greatest potential for public participation is still in the future,’ Steven Case, chairman of America On-line, told a recent meeting on Journalism and the Internet sponsored by The Freedom Forum, though some other speakers say the new technology of computers is changing the face of journalism, giving reporters access to more information and their readers a chance to ask questions and turn to different sources. ’You don’t have to buy a newspaper and be confined to the four comers of that paper anymore.’ Sam Meddis, on-line technology editor at USA Today, observed about the variety of information available to computer users. But the speakers noted the easy access to the internet also means anyone can post information for others to see.’Anyone can say anything they want, whether it’s right or wrong.’ said Case. Readers have to determine for themselves who to trust. ’In a world of almost infinite voices, respected journalists and respected brand names will probably become more important, not less,’ Case said. ’The internet today is about where radio was 80 years ago, or television 50 years ago or cable 25 years ago, ’he said. But it is growing rapidly because it provides people fast access to news and a chance to comment on it. On the whole, the attitude Steven Case holds for the internet’s future development is ()
A. pessimistic
B. unknown
C. doubtful
D. optimistic