题目内容

请编写函数fun(),其功能是:将s所指字符串中除了下标为偶数、同时ASCII值也为偶数的字符外,其余的全部删除,串中剩余字符所形成的一个新中放在t所指的数组中。 例如,若s所指字符串中的内容为ABCDEFG123456,其中字符A的ASCII码值为奇数,因此应当删除;其中字符B的 ASCII码值为偶数,但在数组中的下标为奇数,因此也应当删除;而字符2的ASCII码值为偶数,所在数组中的下标也为偶数,因此不应当删除,其他依此类推。最后t所指的数组中的内容应是246。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。 试题程序: #include<conio.h> #include<stdio.h> #include<string.h> void fun(char*s,char t[]) main() char s[100],t[100]; clrscr(); printf("\nPlease enter string S:"); scanf("%s",s); fun(s,t); printf("\nThe result is:%s\n",t);

查看答案
更多问题

在一棵二叉树上第5层的结点数最多是( )。

A) 8
B) 16
C) 32
D) 15

M: Say, Rason, what are you watching W: An old Japanese film. I wonder if I’m going to spend all my next year there. I’d better start familiarizing myself with the culture. M: You mean you are accepted into the program W: Yes. M: That’s wonderful. You must be excited. W: Excited and nervous. You know I owe a lot to Professor Mercheno. He wrote a letter of recommendation for me and he bought me a set of practice tapes and a book which goes with them. Just so I can work on my basic conversation skills. M: How much Japanese can you understand W: Not a lot at present. But I signed up for intensive Japanese this semester. M: I wish I were as talented as you are in foreign languages. I’d like to study abroad. W: Than why don’t you The university has lots of over- seas programs that don’t require mastery of a foreign language. The tuition is about the same. You just have to be the kind of person who is receptive to new ways of looking at things and willing to adjust to a different kind of life style.M: I had assumed that all programs required you to know a foreign language. I might check into this. W: You won’t regret it. What is the woman doing when the man interrupts her()

A. Taping some music.
B. Watching a film.
C. Making a video recording.
D. Writing a letter.

An apprenticeship is a form of on-the-job training that combines workplace experience and classroom learning. It can last anywhere from one to six years, but four years is typical for most. An apprentice spends the majority of the time in a workplace environment learning the practical skills of a career from a journeyman - someone who has done the job for many years. The rest of the apprentice’s time is spent in a classroom environment learning the theoretical skills the career requires. Being an apprentice is a full-time undertaking. One of the advantages of apprenticeship is that it does not cost apprentices anything. The companies that hire them pay for school. What’s more, it offers apprentices an "earn while you learn" opportunity. They usually start out at half the pay of a journeyman, and the pay increases gradually as they move further along in the job and studies. Near the end of the apprenticeship, their wages are usually 90 percent of what a journeyman would receive. Apprenticeship also pays off for employers. It can offer employers a pool of well-trained workers to draw from. Despite the advantages, apprentices are usually required to work during the day and attend classes at night, which leaves little time for anything else. Sometimes, they might be laid off (下岗) if business for the employers is slow. Once they have completed the apprenticeship and become journeymen, they receive a nationally recognized and portable certification and their pay also increases again. Some journeymen continue employment with the companies they apprenticed with; others go onto different companies or become self employed contractors. Apprenticeship Definition: On-the-job training combining workplace experience and classroom learning The majority of the time in a workplace: learning the practical skills The rest of the time in a classroom: learning the theoretical skills Advantages: Costing apprentices nothing Offering apprentices money-making opportunities Half the pay of a journeyman (46) Gradually increasing pay in the process 90% of (47) near the end Offering employers (48) Disadvantages: Little time for anything else The possibility of (49) Results: A formal certification (50) Free choices of jobs

Marriage is still a popular social practice in America, but divorce is becoming almost as "popular". Most Americans get married, but at the same time, fifty percent of their marriages end up in divorce. However, four out of five divorced people do not stay single. They get married for the second time to new partners. Sociologists tell us that in the 21st century, most American people will marry three or four times in one lifetime. Alvin Toffier, an American sociologist, calls this new social form social marriages. In his book Future Shock, Toffier gives many reasons for this change in American marriage. In modem society, people’s lives don’t stay the same for very long. Americans frequently change their jobs ,their homes, and their circle of friends. So the person who was a good husband or wife ten years ago is sometimes not as good ten years later. After being married for some years, a husband or wife can feel that their lives have become very different, and they don’t have the same interests any more. Because of this, Toffier says,people in the 21st century will not plan to marry only one person for an entire lifetime. They will plan to stay married to one person for perhaps five or ten years, and then marry another. Most Americans will expect to have a "marriage career" that includes three or four marriages.The divorce rate in America has reached____________________________________6In the 21st century, most Americans will marry three or four times_________7Alvin Toffler published a book named_______________________________________8The percentage of remarriage among divorced Americans is___________________9One of the reasons for the change in American marriages is_________________10 7().

答案查题题库