题目内容

已知IN2.DAT中存有200个4位数,并已调用读函数readDat()把这些数存入数组a中,请编制一函数jsVal(),其功能是:依次从数组a中取出一个数,如果该4位数连续大于该4位数以后的5个数且该数是奇数,则统计出满足此条件的数的个数cnt,并把这些4位数按从小到大的顺序存入数组b中,最后调用写函数writeDat()把结果ent及数组b中符合条件的4位数输出到OUT2.DAT文件中。 注意:部分源程序已给出。 程序中定义数组:a[200],b[200],已定义变量:cnt。 请勿改动主函数main()、读函数readDat()和写函数writeDat()的内容。 试题程序: #include<stdio.h> #define MAX 200 int a[MAX],b[MAX],cnt=0; void writeDat(); void jsVal() void readDat() int i; FILE *fp; fp=fopen("IN2.DAT","r"); for(i=0;i<MAX;i++) fseanf(fp,"%d",&a[i]); fclose(fp); void main() int i; readDat(); jsVal(); printf("满足条件的数=%d\n",cnt); for(i=0;i<cnt;i++)printf("%d",b[i]); printf("\n"); writeDat(); void writeDat() FILE *fp; int i; rp=fopen("OUT2.DAt","w"); fprintf(fp,"%d\n",cnt); for(i=0;i<cnt;i++)fprintf(fp,"%d\n",b[i]); fclose(fp);

查看答案
更多问题

案例二[背景资料]某建筑工程建筑面积205000m2,混凝土现浇结构,筏板式基础,地下三层,地上十二层,基础埋深12.4m,该项工程位于繁华市区,施工场地狭小。工程所在地区地势北高南低,地下水流从北向南。施工单位的降水方案计划在基坑南边布置单排轻型井点。基坑开挖到设计标高后,施工单位和监理单位对基坑进行验槽,并对基底进行了钎探,发现地基东南角有约350m2软土区,监理工程师随即指令施工单位进行换填处理。工程主体结构施工时,二层现浇钢筋混凝土阳台在拆模时沿阳台根部发生断裂,经检查发现是由于施工人员将受力主筋位置布置错误所造成的。事故发生后,业主立即组织了质量大检查,发现一层大厅粱柱节点处有露筋;已绑扎完成的楼板钢筋位置与设计图纸不符;施工人员对钢筋绑扎规范要求不清楚。工程进入外墙面装修阶段后,施工单位按原设计完成了965m2的外墙贴面砖工作,业主认为原设计贴面砖与周边环境不协调,要求更换为大理石贴面,施工单位按业主要求进行了更换。[问题] 工程质量事故和业主检查出的问题反映出施工单位质量管理中存在哪些主要问题?

You might think they would have learned their lesson by now. At the end of 2005 Republicans in the House of Representatives passed a bill that cracked down on illegal immigration, while doing nothing to regularise the position of the 12m or so people, mostly of Hispanic origin, who were living and working inside the United States without the proper papers, or to create a mechanism for allowing in people from Mexico and other southern neighbours to work with temporary permits. The bill never became law, but its one-sided nature helped stamp the Republicans (92% of whom voted for it in the House) as an anti-immigrant party. In April 2006 Latinos organised a day of protests in more than 100 cities; more than 500,000 people marched in Los Angeles alone. In the 2008 election 67% of Hispanics voted for Barack Obama.Now it is all happening again. Until now, the detection of illegal immigrants has invariably been a matter for the federal authorities.Republican-governed Arizona has just enacted a tough new law of its own: it requires state police to check the papers of anyone whose immigration status they have "reasonable" cause to doubt. Opponents say this is sure to lead to racial profiling. The bill is popular with angry white locals, so much so that the previously reform-minded John McCain, who is running for re-election to the Senate in Arizona, has not dared to oppose it. But in a country that is turning Hispanic at a rapid rate (by mid-century white Anglos will be another minority), the Republicans are once again hellbent on being on the wrong side of demography. The backlash will surely last longer than any bump in popularity gained by looking tough. The marches have begun again: on May 1st, up to a million people across the country took to the streets, by no means all of them Hispanic.For those who yearn for America to have a sensible immigration policy, the Arizona bill is a reason for both despair and hope. The first is easier to spell out. By any measure, Arizona’s offering is deeply illiberal. It would require all non-U. S. citizens to carry documents proving their immigration status, and would require police to check those papers in any contact with anyone who might be illegal. The obvious danger is that it would lead to the systematic harassment of brown-skinned people, including legal immigrants. As for illegals, it would simply drive even more of them underground. It would also criminalise anyone who shelters or helps illegals. Even the plan’s fans acknowledge that this is the toughest such bill ever passed in America.Paradoxically, the reason for hope is much the same. The bill is such a shocker that it is restarting the national debate. The Arizona law passed largely because the government is failing to do its job. The border is not secure; employers can and do hire people who have no legal right to be in America; and cross-border crime is on the rise. Better enforcement is needed. But on both political and moral grounds, better enforcement can only he part of a comprehensive immigration reform. The 12m illegals cannot be wished away, but must be given a chance to earn their citizenship; a guest-worker programme is needed to match the demands of employers with the desire of Mexicans and others to work. Mr. Obama’s administration has talked a lot about an immigration bill. It is now long past time that they produced one. Otherwise, expect to see more Arizonas. The Arizona bill is believed to be().

A. intolerant.
B. deceitful.
C. ironic.
D. illegal.

Kathryn Harrison is a wonderful writer. It seems important to get that on the table right away, since for most readers, her name will elicit one fact: Kathryn Harrison wrote a memoir about having slept with her father. Back in 1997, that notoriously hyper publicized book, "The Kiss"—in which she recounted an affair she had in her 20’s with the father she had not seen since she was a child—set critics scratching furiously at the welts it raised in the culture, largely neglecting the book in the process for its lurid cover story. Skip to next paragraphIn the hubbub, few pointed out that "The Kiss" is a pretty terrific memoir. Poetic and compressed, it is not a pointed finger, or an artless blurt, but a grimly hypnotic horror story, making human what might in other hands seem merely grotesque. That’s Harrison’s particular gift as a writer; and while her output, from memoirs and essays and novels, has been of varying quality, she has continually circled around her central, obsessive themes: narcissism, family violation, sexual taboo and physical suffering. For better or worse, this is a writer who veers toward what others find distasteful; in her novels, she has found parallel torments everywhere in history, from foot-binding in China ("The Binding Chair") to the Inquisition ("Poison").The setting of "Envy" is less exotic. Will Moreland, a New York psychoanalyst, thinks at once too much and too little. His son has died. His twin brother—a world-famous swimmer—is estranged. His wife is distant. In fact, everything in this grief-stained but otherwise normal existence feels a little distant, and Will himself appears, if not precisely unreliable, then slightly clueless. In his struggle to wriggle out from his own anxieties, his remarks can seem like witty meta-comments on the narrative itself: "Yes, he’s obsessed with sex. How else could he escape the inside of his head, where every thought refuses to be fleeting and instead waits its turn to be hyperarticulated, edited, revised and then annotated like some nightmare hybrid of Talmudic commentary and Freudian case study"In the spellbinding opening chapters, Will attends his college reunion and confronts an old girlfriend who may or may not have gotten pregnant by him years back. The ex is a grade-A wench, and their run-in is a startling rat-a-tat of mutual accusation. "Ironic that she’d become a dermatologist," Will thinks. "She’d always had a personality like a rash, itchy, chafing, the kind of woman who just won’t let you get comfortable." She ends the scene (and it does feel like a scene—the best elements of "Envy" are its most theatrical) with the fair-enough remark, "You are an excellent example of why it is that people think shrinks are nuts."The pages that follow ignore this electric showdown, or at least repress it. There’s a lot going on here, perhaps too much: a married couple drifting apart in grief, tension between Will and his philandering father, identical twins with non identical faces, a patient whose seductive behavior spills insistently over the edges of her shrink’s couch. And despite Will’s agitated attempts to interrogate the meaning of his life, he is surrounded by people who would prefer that he stop his inquiries immediately. As much detective as psychoanalyst, he’s too blinded by over thinking to give in to his own intuition.Then abruptly, with one traumatic sexual sequence, these disparate story lines cohere to reveal a new pattern: a Rorschach plot, in essence. The book’s muted family problems become elements in a Greekish tragedy, one filled with the tropes of sexual violation for which Harrison is best known. It’s like one of those souvenir 1950’s pens that tilt upside down to strip an innocent cheesecake model to her pornographic double, and Harrison’s witty, lucid, poetic sentences do carry us quite a long way through passages rife with the kind of ickiness bound to alienate some readers and rivet others.Unfortunately, her consistently skillful descriptions aren’t quite enough to make the novel pay off in the end. As heightened as this hidden plot turns out to be, it is frustratingly formulaic at its deepest level. It’s a dream horror that finally feels all too dreamlike, too embeddedly symbolic to have the pang of real life. And when the villain of the book is unmasked—and there is a villain, as blackhearted as a medieval troll—it’s disappointing to find a sociopath standing behind that particular door. So rank an antagonist renders the whole question of analytical motivation moot: the human flaws of the other characters pale by contrast; their struggles seem weightless next to such grave crimes.Still. there are standout moments here, mainly in the most chaotic and unmediated confrontations: the sequences, especially, in which a waifish, tattooed, sardonic, compulsively sexual graduate student is transformed into the world’s most disturbing therapy patient. What finally marks the book is Harrison’s abandonment of the tragic mode. After a series of lurid turns that would leave most families in seizures of distress, her characters do not collapse, or brutalize one another. Instead, they fulfill Will’s deepest psychoanalytic desires, and confess—reeling out monologues far less con vincing than the showdowns that came before. We are left with the loving attempts of well-meaning people to heal their wounds. In real life, that would be a beautiful ending; but in a novel soaked so deeply in horror, it feels too much like wishful thinking. What does Will Moreland think of his old girlfriend rash, itchy, chafing().

Attractive
B. Seductive
C. Hard to stay with
D. charmless

The two Koreans signed a deal last Friday to allow reunions of families separated since the 1950s and the return of former Democratic People’s Republic of Korea (DPRK) prisoners.A delegation of 100.people is to travel to DPRK capital Pyongyang and 100 North Koreans will visit relatives in Seoul beginning on August 152, 000, reports said.The two sides also agreed to repatriate all DPRK prisoners formerly held in the South. The two Koreans signed a deal to allow ().

A. reunion of the two nations
B. reunion of the governments
C. reunion of families separated
D. return of former South Korean prisoners

答案查题题库