【单选题】【消耗次数:1】
实现两个相同类型数加法的函数模板的声明是()
add(Tx,Ty)
Tadd(x,y)
Tadd(Tx,y)
Tadd(Tx,Ty)
参考答案:
复制
纠错
相关题目
【单选题】 实现两个相同类型数加法的函数模板的声明是()
①  add(T x,T y)
②  T add(x,y)
③  T add(T x,y)
④  T add(T x,T y)
【单选题】 实现两个相同类型数加法的函数模板的声明是()
①  add(T x,T y)
②  T add(x,y)
③  T add(T x,y)
④  T add(T x,T y)
【单选题】 有如下模板定义:templateT fun(Tx,Ty){returnx*x+y*y;}在下列对fun的调用中,错误的是()
①  fun(2,8)
②  fun(2.0,8.2)
③  fun(2.3,8)
④  fun(2,8.3)
【单选题】 设有函数模板templateQ Sum(Q x,Q y) {return (x)+(y);} 则下列语句中对该函数模板错误的使用是()
①  Sum(10,2);
②  Sum(0,7);
③  Sum(2f,0f);
④  Sum(“AB”,”CD”);
【单选题】 设有函数模板template Q Sum(Q x,Q y) {return (x)+(y);} 则下列语句中对该函数模板错误的使用是()
①  Sum(10,2);
②  Sum(0,7);
③  Sum(2f,0f);
④  Sum(“AB”,”CD”);
【单选题】 100BASE-TX中,所用的传输介质是()。
①  3类双绞线
②  5类双绞线
③  1类屏蔽双绞线
④  任意双绞线
【单选题】 设X,Y是相互独立的两个随机变量,它们的分布函数分别为FX(x),FY(y),则Z = max {X,Y}的分布函数是
①  FZ(z)= max { FX(x),FY(y)}
②  FZ(z)= max { |FX(x)|,|FY(y)|}
③  FZ(z)= FX(x)·FY(y)
④  都不是
【多选题】 令 F(x): x 是角, H(x, y): x 和 y 是相等的, L(x, y): x 与 y 是对顶角,则命题“相等的两个角未必都是对顶角”符号化不正确的有:
①  $x(F(x) ù ($y(F(y) ù H(x, y) ù ?L(x, y))).
②  xy(F(x) ù F(y) ù H(x, y) ? ? L(x, y))
③  $x(F(x) ù ($y(F(y) ù H(x, y) ? ?L(x, y))).
④  xy(F(x) ù F(y) ù H(x, y) ù ? L(x, y)).
【单选题】 X,Y为两个随机变量,且E((X-EX)(Y-EY))=0则X,Y( ).
①  独立
②  不独立
③  相关
④  不相关
【单选题】 设有函数T Sum(T x,T y){return x+y;},其中T为模板类型,则下列语句中对该函数错误的使用是( )
①  Sum(1,2);
②  Sum(0,2);
③  Sum(‘A’,‘C’);
④  Sum(A,C);
随机题目
【单选题】 16.—Youve made great progress in your studies of English, havent you? ---Yes, but much.
①  remainstodo
②  isremainedtodo
③  remainstobedone
④  isremainedtobedone
【单选题】 18. ______ the Atlantic Ocean crosses the equator, the trade winds cause a flow of water to the west.
①  That
②  When
③  Where
④  Though
【单选题】 13. Unfortunately, when I dropped in, Doctor Li _____ for Beijing to join in the fight again SARS, so we only had time for a few words.
①  justleft
②  hasjustleft
③  isjustleaving
④  wasjustleaving
【单选题】 21. — When will you leave for Paris for a visit? — next month.
①  Until
②  After
③  At
④  In
【单选题】 27. For quite _____ students,their teachers advice is more important than _____ of their parents.
①  few;one
②  afew;that
③  alittle;some
④  alot;many
【单选题】 23. Never _______ forget the days when _______ together with you.
①  shallI;Ilived
②  shallI;didIlive
③  Ishall;Ilived
④  Ishall;didIlived
【单选题】 28. "_____ your meeting is!" he offered them his sincere congratulations.
①  Howagreatsuccess
②  Whatagreatsuccess
③  Howgreatsuccess
④  Whatgreatsuccess
【单选题】 24. Why didnt you tell me there was no meeting today? I _____ all the way here _____the heavy snow.
①  neednthavedriven;though
②  canthavedriven;across
③  mustnthavedriven;through
④  shouldnthavedriven;cross
【单选题】 25.It was the training _______ he had at school _______ made him good jumper.
①  what;what
②  that;that
③  what;that
④  that;had
【单选题】 26. It was _____ great shock to the world that two airplanes crashed into _____ World Trade Centre in New York on Sept.11.
①  a;/
②  the;the
③  a;the
④  /;the