问题 单项选择题

关于在调用模板函数时模板实参的使用,下列表述正确的是【 】

A.对于虚拟类型参数所对应的模板实参,如果能从模板函数的实参中获得相同的信息,则都可以省略

B.对于虚拟类型参数所对应的模板实参,如果它们是参数表中的最后的若干个参数,则都可以省略

C.对于虚拟类型参数所对应的模板实参,若能够省略则必须省略

D.对于常规参数所对应的模板实参。任何情况下都不能省略

答案

参考答案:B

解析:在调用一个模板函数时,如果从函数实参获得的信息已经能够判定其中部分或全部虚拟类型参数所对应的实际参数,而且它们又正好是参数表中最后的若干参数,则模板实参表中的那几个参数可以省略。

完形填空
Sally is 96 years old. She has no sons or daughters. Her husband       fifteen years ago. But she didn’t move into a nursing home. She would like to      herself every day.
Every night she spends two hours         kids with their maths for twenty years. All kids living on her street can get her help without payment(付费). She was a famous        before she retired from a middle school.
She gets up early in the morning, then does sports, goes shopping or helps cleaners       the street. And she does these happily.
When the kids come for help, she is always     and tries her best to help them. People asked her        . She said, “ I love it, it makes me happy to help them.”
She is always happy every day and always says hello to people around her        a smile.
“I’ve decided to love everything around me. So I’m happy to do       . I’m thankful for those kids who come to me for help. Each kid is a       for me. I love each day to help them.” She said. 
Really, a good decision decides what a person does in life.
小题1:
A.diedB.wokeC.sleptD.went
小题2:
A.look likeB.look atC.look afterD.look for
小题3:
A.helpingB.workingC.studyingD.teaching
小题4:
A.cleanerB.nurseC.workerD.teacher
小题5:
A.walkB.runC.sweepD.talk
小题6:
A.awfulB.tiredC.happyD.boring
小题7:
A.WhyB.whereC.whenD.how
小题8:
A.forB.onC.withD.in
小题9:
A.anythingB.nothingC.somethingD.everything
小题10:
A.exampleB.giftC.teacherD.helper
单项选择题