问题 填空题

若要在C盘根目录下作为二进制文件打开文件test.dat,则应该用的语句是【 】。

答案

参考答案:ifstream fin("C:\test.dat",ios_binary);或ifstream fin;fin.open(c:\test. daf"ios_binary);

解析:C++中打开文件有两种方式①ifstream fin("test.dat");②ifstream fin;fin.open("test.dat");,ios_binary的意义是以二进制文件打开。

完形填空

My life is always full of sadness and little joy. However, no matter(无论) what happens, I can always face it bravely.
Last year,  I couldn’t believe the   1   that I could enter the only key high school in my hometown.  Then I rushed to my home and told my parents.  But my father didn’t  seem as    2        as I was. He just kept smoking without saying a word and my mother put her head down and couldn’t help   3  .
I knew very well what my family was   4___ . My mum had been ill in bed for 2 years. We lived a hard life and I couldn’t continue my schooling. I felt so upset(心烦意乱) but I could say   5    to my parents. I decided to help my father with his work   6   my family.
To my surprise, things completely changed   7     the beginning of the new term. My head teacher came to my family with some money, which was   8     by my schoolmates. He encouraged me, “Always have a dream.” With tears in my eyes, I stepped into the key high school.
I have been studying hard since I entered the high school. No matter when I meet difficulties, I always   9     my teacher and schoolmates. I have a college dream and I must work hard for it, no matter how  10    life is. Just as a great man says, “When one door shuts, another opens in life.”
小题1:
A.ideaB.storyC.newsD.thought
小题2:
A.nervousB.excitedC.interestedD.worried
小题3:
A.cryingB.laughingC.sayingD.shouting
小题4:
A.aboutB.beforeC.againstD.like
小题5:
A.nothingB.somethingC.anythingD.everything
小题6:
A.support B.to supportC.supportingD.supported
小题7:
A.afterB.sinceC.beforeD.on
小题8:
A.raisedB.spentC.plannedD.saved
小题9:
A.dream ofB.think ofC.hear ofD.talk of
小题10:
A.happyB.sadC.interestingD.hard
单项选择题

"It’s no use, Mum," said Johnny. "I’m just no good at dancing."

"You’ve got to keep trying. Tonight will be (1) , dear. Try a turn with that pretty Lisette. "

Johnny (2) . Every Saturday night used to be the best of the week. He and his parents went to the (3) at the Club, where his hero, Alcide, played the accordion with the band. But lately everything had changed. Now that Johnny was older, he was (4) to dance with a girl!

(5) Johnny and his parents arrived at the Club, music had already started. Johnny got up his (6) to approach Lisette. "May I have this dance" Johnny asked. "That’s all right."said Lisette. Johnny struggled to keep up with Lisette’s (7) steps, but he was always one beat behind her. Then Johnny heard his friend Pierre say, "Look! Johnny has two left feet!" (8) burst from the crowd. Johnny (9) and ran outside, determined never to go to another dance.

The next Saturday, Alcide (10) to Johnny’s house for some potatoes. He happened to hear Johnny playing the accordion. Alcide’s eyes (11) . "Bring that accordion and play some songs tonight," Alcide said. Then he drove off, leaving Johnny staring open mouthed (12) him.

At the Club, Johnny scanned the crowd for Lisette and (13) her. The band played for a long time before Alcide said, "Dear friends, I got a (14) for you tonight. Young Johnny is going to join us!" (15) , Johnny stepped up on the platform, his eyes on the floor. He began to play, and the band (16) behind him. When the song ended, he heard cheers. Johnny kept playing until the dance was (17) . "You did a fine job tonight. Play with us again next Saturday night, " Alcide said. "Yes, sir! " said Johnny. (18) he went outside, Johnny saw Lisette and her friends near the door. Lisette stepped (19) , smiling. "You played really good tonight!" she said."Thank you," Johnny blushed. As he walked on, Pierre (20) moved out of the way for him to pass.Johnny patted his accordion. Come to think of it, in his whole life, he had never once seen Alcide out on the dance floor.

1().

A.difficult

B.troublesome

C.different

D.terrible