【单选题】【消耗次数:1】
以下关于模板的叙述中,不正确的是()。
用模板定义一个对象时不能省略参数
类模板只能有虚拟参数类型
类模板的成员函数都是模板函数
类模板本身在编译中不会生成任何代码
参考答案:
复制
纠错
相关题目
【单选题】 类模板的模板参数( )。
①  只能作为数据成员的类型
②  只可作为成员函数的返回类型
③  只可作为成员函数的参数类型
④  以上三种均可
【单选题】 类模板的模板参数( )。
①  只能作为数据成员的类型
②  只可作为成员函数的返回类型
③  只可作为成员函数的参数类型
④  以上三种均可
【单选题】 以下关于函数模板叙述正确的是()
①  函数模板也是一个具体类型的函数
②  函数模板的类型参数与函数的参数是同一个概念
③  通过使用不同的类型参数,函数模板可以生成不同类型的函数
④  用函数模板定义的函数没有类型
【单选题】 以下关于函数模板叙述正确的是()。
①  函数模板也是一个具体类型的函数
②  函数模板的类型参数与函数的参数是同一个概念
③  通过使用不同的类型参数,函数模板可以生成不同类型的函数
④  用函数模板定义的函数没有类型
【单选题】 以下关于函数模板叙述正确的是(????)
①  函数模板也是一个具体类型的函数
②  函数模板的类型参数与函数的参数是同一个概念
③  通过使用不同的类型参数,函数模板可以生成不同类型的函数
④  用函数模板定义的函数没有类型
【单选题】 以下关于函数模板叙述正确的是()。
①  函数模板也是一个具体类型的函数
②  函数模板的类型参数与函数的参数是同一个概念
③  通过使用不同的类型参数,函数模板可以生成不同类型的函数
④  用函数模板定义的函数没有类型
【单选题】 关于模板函数与函数模板说法正确是()
①  其实质是一样的,只是说法不同
②  两者的形参类型是一样的
③  模板函数是函数模板的实例化
④  函数模板是模板函数的实例化
【单选题】 类模板的使用实际上是将类模板实例化成一个( )。
①  函数
②  对象
③ 
④  抽象类
【单选题】 类模板的使用实际上是将类模板实例化成一个( )。
①  函数
②  对象
③ 
④  抽象类
【单选题】 以下类模板定义正确的为( )。
①  templateclass T,int i=0
②  templateclass T,class int i
③  templateclass T,typename T
④  templateclass T1,T2
随机题目
【多选题】 The lives of many people have been enriched_________ adult education.
①  because
②  because of
③  due to
④  owing to
【多选题】 A: Im sorry for being late.B:___________
①  It doesnt matter.
②  Never mind.
③  No problem.
④  Forget it.
【多选题】 Whats __________ , Tom? You dont look well.
①  wrong
②  the matter
③  matter
④  pity
【多选题】 ___________ , in order to make more profit, storekeepers try to supply not only enough goods but also different services for their customers.
①  In short
②  In a word
③  In sum
④  All in all
【多选题】 I am_______________ these exercises.
①  friendly with
②  fought for
③  tired of
④  no longer interested in
【多选题】 A: ________________ get off?B: Get off at the post office.
①  Where should I
②  What should I
③  Can you tell me where to
④  Can you tell me what to
【多选题】 A: Is your grandmother still alive?B:_________
①  She is die.
②  She is dead.
③  She has passed away.
④  She died five years ago.
【单选题】 A nice dictionary_________ to him yesterday.
①  gave
②  has been given
③  was given
④  was giving
【单选题】 I have an appointment_________ 15 minutes.
①  on
②  at
③  for
④  in
【单选题】 My answer is different from yours. I_________ with you.
①  disagree
②  dislike
③  disconnect
④  discover