【单选题】【消耗次数:1】
在下面的( )函数声明语句存在语法错误。
AA(int a,int b);
AA(int,int)
AA(int a;int b)
AA(int a,int)
参考答案:
复制
纠错
相关题目
【单选题】 下列语句中,将函数int sum(int x, int y)正确重载的是( )。
①  float sum(int x, int y);
②  int sum(int a, int b);
③  float sum(float x, float y);
④  double sum(int y, int x);
【单选题】 下列语句中,将函数int sum(int x, int y)正确重载的是( )。
①  float sum(int x, int y);
②  int sum(int a, int b);
③  float sum(float x, float y);
④  double sum(int y, int x);
【单选题】 int Func(int,int);不可与下列哪个函数构成重载( )
①  int Func(int,int,int);
②  double Func(int,int);
③  double Func(double,double);
④  double Func(int,double);
【单选题】 int Func(int,int);不可与下列哪个函数构成重载( )
①  int Func(int,int,int);
②  double Func(int,int);
③  double Func(double,double);
④  double Func(int,double);
【单选题】 有说明语句int b[4][5];void fun(int*,int n);调用函数的正确语句是()
①  fun(b,20);
②  fun(b[0],20);
③  fun(b[0][0],20);
④  fun(b,20);
【单选题】 假定一个类的构造函数为A(int aa,int bb) {a=aa--;b=a*bb;},则执行A x(4,5);语句后 ,x.a和x.b的值分别为()
①  3和15
②  5和4
③  4和20
④  20和5
【单选题】 假定一个类的构造函数为A(int aa,int bb){a=aa++;b=a*++bb;},则执行A x(4,5);语句后,x.a和x.b的值分别为()
①  4和5
②  4和20
③  4和24
④  20和5
【单选题】 假定一个类的构造函数为A(int aa,int bb) {a=aa--;b=a*bb;},则执行A x(4,5);语句后,x.a和x.b的值分别为()
①  3和15
②  5和4
③  4和20
④  20和5
【单选题】 考虑下面的函数原型声明:void testDefaulParam(int a,int b=7,char z=*下面函数调用中,不合法的是( )。
①  testDefaulParam(5);
②  testDefaulParam(5,8);
③  testDefaulParam(5,#
④  testDefaulParam(0,0,*
【单选题】 考虑下面的函数原型声明:void testDefaulParam(int a,int b=7,char z=*);下面函数调用中,不合法的是( )。
①  testDefaulParam(5);
②  testDefaulParam(5,8);
③  testDefaulParam(5,#);
④  testDefaulParam(0,0,*);
【单选题】 设函数void swap(int,int)将交换两形参的值,如两整型变量int a=10;int b=15;则执行swap(a,b)后,a、b值分别为( )
①  10,10
②  10,15
③  15,10
④  15,15
随机题目
【单选题】 The comsumption index increases_______6% in 2015 _______8% in 2017.
①  to, from
②  by, from
③  from, to
【单选题】 Linda_______her husband a wallet before her husband bought her a watch.
①  has bought
②  bought
③  had bought
【单选题】 The child keeps _______ for her mother outside during the meeting.
①  wait
②  to wait
③  waiting
【单选题】 Employment _______ in the past two years.
①  has gone up rapidly
②  went up rapidly
③  has risen steady
【单选题】 I’m afraid he _______find the key to this problem.
①  could never
②  never could
③  couldn’t never
【单选题】 We will fly to Guilin, _______ we plan to stay for one week.
①  that
②  where
③  which
【单选题】 Has he _______ the chair _______ yet?
①  had, mend
②  had, mending
③  got, mended
【单选题】 The furniture has broken for some days, and it _______ .
①  needs fixed
②  needs fixing
③  needs to fix
【单选题】 Flash发布的动画文档格式是什么?
①  FLV
②  SWF
③  A
④  FLP
【单选题】 Flash中的时间轴,其用途是什么?
①  制作动画情节
②  开启新文件
③  关闭旧文件
④  储存旧文件