题目内容

[说明]
该程序从正文文件test.txt中读入一批整数,并将它们按照递增的顺序存放在一个链表中。其中,函数struct Link*insertChain(struct Link*head,structLink*k)用来寻找结点k在链表head中的插入位置,并插入该结点。
[C程序]
include <stdio.h>
include <stdlib.h>
struct Link
{ int number;
struct Link *next;
}
struct Link *insertChain(struct Link *head,struct Link *k);
VOid main()
{ struct Link *ptr, *head;
FILE *fd;
int hum;
if((fd=fopen("test.txt","r"))==NULL)
{print("Cannot open this file!\n");
return;
}
head=NULL;
while(fscanf(fd,"%d",hum)==1)
{ ptr=(1);
if(!ptr) return;
ptr->number=hum;
ptr->next=NULL;
head=insertChain(head,ptr);
}
(2);
return;
}
struct Link *insertChain(struct Link *head,struct Link *k)
{ struct Link *ptr,*u;
ptr=head;
while(ptr && k && k->number>ptr->number)
{ u=ptr; (3) }
if(ptr == head) head=k;
else (4);
(5);
return head;
}

查看答案
更多问题

烹饪时由于食物原料的受热和各种因素的作用,各种维生素损失程度大小大致的顺序为:C>B1>B2>其他B族>A>D>E。()

17. A. for B. after C. to
18. A. pleasing B. pleased C. pleasant
19. A. shake B. touch C. feel
20. A. at B. with C to
21. A. or B.and C. with
22. A. in B. the C. within
23. A. talk about B. ask about C. avoid
24. A. especially B. special C. specially
25. A. chance B. opportunity C. turns

Before the child died, her parents were arrested on abuse charges, but now they could face more serious charges. Officials said yesterday that a grand jury would begin this week to weigh charges against her parents in the death.
The girl's mother initially told detectives that the child was not hers and that she had recently been smuggled into the United States from Mexico, where she suffered the injuries, the police said. But the mother has since admitted that she withheld food from the girl, Edith Gonzalez, as punishment, a senior law enforcement official said.
The woman, who also gave the police a false name and address when she was arrested late Monday, was arraigned yesterday on charges of endangering the welfare of a child, a felony, and reckless endangerment, a misdemeanor. Her boyfriend, the child's father, was arrested late Tuesday and arraigned yesterday on the same charges. Both pleaded not guilty and were held without bail.
At the two arraignments yesterday, in Brooklyn Criminal Court, and in interviews with investigators and neighbors, a picture began to emerge of a household where abuse of the little girl seemed more the rule rather than the exception.
Punishment, as the child's mother and father put it in statements to the police and prosecutors, was not limited to withholding food and beatings— he said he beat her with his fists, a belt and a cable and that the child's mother struck the three-year-old with a cable, according to court papers and the law enforcement official. The mother also admitted that she sometimes plunged the child into a tub filled with ice water, the official said.
The mother, now identified as Tania Cabrera, 23, first told the police that her name was Patricia Aguirre and that she was 25 years old.
Ms. Cabrera, in her statements to the police and prosecutors, detailed instances of abuse in the home that the couple share on George Street in Bushwick, Brooklyn, with their daughter and Ms. Cabrera's five-year-old boy with another man, the official said. She said her boyfriend, Edison Gonzalez, 19, favored Edith over the boy, Javier, prompting arguments, and Ms. Cabrera said she eventually took out her frustration on the girl, the official said. Ms. Cabrera also said Mr. Gonzalez would drink and become abusive.
It remained unclear yesterday exactly how the little girl suffered the skull fracture and cerebral bruising that were among her most serious injuries, but the criminal complaints charging Ms. Cabrera said that the child had seizures on both Sunday and Monday, and that on the second day, the child fell from a chair, striking her head.
An autopsy to determine the cause of death, which will in some measure determine whether more serious charges are brought, will be performed today, officials said.
(56)

"Cool" is a word with many meanings.Its traditional meaning is used to 36 a tempera-ture that is fairly cool.As the world has37, the word has expanded to38 many differentmeanings.
"Cool" can be used to express feelings of39in almost anything.
When you see a brand-name car in the street, maybe you can&39; t help 40, "It&39; s cool."You might think, "He&39; s so cool," when you see your41 footballer.
We all enlarge the meaning of "cool".You can use it42 many words such as "new" or"amazing".Here&39; s an interesting story 43 illustrate the usage ofthe word: A teacher askedher students to44 the waterfall they had visited.On one student&39; s paper was just the one 45, "It&39; s so cool." 46he thought it was47to describe48he saw and felt:
49 the story also proves the shortage of words and expressions.50 "cool", somepeople have no words to express the same meaning.So it is51 to improve our word strengthto maintain some52.
As a popular word, "cool" stands for a kind of special53 that people can accept easily.Except "cool", can you think of many words that54 your life as colorful? I can.And I thinkthey are also very55.
第36题应选 查看材料

A. find
B. take
C. show
D. make sure

答案查题题库