题目内容

补充函数,要求实现如下功能:寻找并输出11~999之间的数m,它满足m,m2,m3均为回文数(回文数是指各位数字左右对称的整数),例如:12321,505,1458541等。满足上述条件的数如m=11时,m2=121,m3=1331都是回文数。请编写js-Value(long m)实现此功能。如果是回文数,则函数返回1,不是则返回0。最后,把结果输出到文件OUT.DAT中。 注意:部分源程序已经给出。 请勿改动主函数Main()中的内容。 试题程序: #include<string.h> #include<stdio.h> #include<stdlib.h> int js Value(long n) main() long m; FILE*OUt: Out=fopen("OUT.DAT","w"); for(m=11;m<1000;m++) if(jsValue(m)&&jsValue(m*m)&&jsValue(m*m*m)) printf("m=%41d,m*m=%61d,m*m*m=%81d",m,m*m,m*m*m); fprintf(out,"m=%41d,m*m=%61d,m*m*m=%81d",m,m*m,m*m*m); fclose(out);

查看答案
更多问题

蚕沙的功效是

A. 祛风湿,补肾安胎
B. 祛风湿,和胃化浊
C. 祛风湿,退虚热
D. 祛风湿,利水消肿
E. 祛风,活络,定惊

Questions 11-13 Choose the correct letter, A, B or C. The main reason for opening bank account is ______

A. to pay bill easily.
B. to keep money safe.
C. to pay tuition fe

味甘性平助湿的药物是

A. 熟地黄
B. 黄芪
C. 甘草
D. 山药
E. 芦根

The United Nations was founded to promote peace, prosperity and human rights. It is doing somewhat better on the first two counts than its critics sometimes make out. The last, however, has been such a failure that it is threatening to bring the whole edifice down. Once revered as the creator of all the great universal human-rights rules and instruments, the 53-member Commission on Human Rights has been thoroughly discredited. If it cannot be fixed it needs to be scrapped. In its present form it serves only to make a mockery of the cause. The reason for this is simple enough. The present committee is packed with members who are themselves serial abusers of human rights. Kofi Annan, the UN Secretary-General, admits that their main purpose in being on the committee is not to strengthen human rights but to protect themselves from criticism. At present, these members include exemplars of virtue such as Zimbabwe, Sudan, Cuba, Saudi Arabia, Nepal and Russia—a veritable roll call of the worst offenders. A plan of sorts exists to reform this mess. Mr. Annan called for the replacement of the commission, which at present meets for just six weeks once a year, by a leaner, tougher, year-round Human Rights Council, which would be ready to act whenever serious abuse was discovered, and whose members should have a solid record on human rights. America and the other leading democracies backed the idea. The serial abusers did not. In the wrangling at a summit on wider UN reforms, Mr. Annan’s baby was reduced to a skeleton. Many wondered whether it could survive. Amazingly, it has just. There is now agreement on the need for a new body, on a par with the Security Council, that would meet several times a year including, when necessary, for emergencies. But its size, powers and composition are still up for grabs. The Americans want no more than 30 members, all with solid human-rights credentials, elected by a two-thirds majority of the General Assembly, along with a routine review of human rights in all 191 UN member states. The abusers want as big a body as possible, elected by a simple majority, as at present, with no membership criteria, and no automatic peer review. Any reform must not just shrink the commission, but must also change the way in which members are elected. At present, regions usually put forward a slate of candidates corresponding to their allotted number of seats, which the General Assembly votes on to the commission as a block. Under one sensible proposal, regions would be required to put forward more contestants than their quota. Each candidate country would then stand separately for election by the General Assembly. Early peer review of all members would further reduce the temptation for thugs to try to get seats. But opposition is fierce, not only from the most notorious offenders, but also from those middle-ranking ones who fear their relatively minor abuses would be put under the spotlight. Timing is tight. The old, unreformed commission is due to hold its next annual meeting. Mr. Annan wants a new one to be ready to take over by then. That means reaching agreement on a blueprint within the next few weeks. If agreement is stymied, the next-best solution will be to wind the existing commission up altogether. Human rights matter too much for the UN to continue to shunt the subject off to a cynical talking shop that has become home to the worst violators. That just blackens the overall reputation of the UN. Which of the following is NOT true of the United Nations

A. Some members have violated human-right rules.
B. Its reputation has been ruined in certain aspect.
C. One commission has called forth a lot of violence.
D. It has done relatively well in promoting peace and prosperity.

答案查题题库