单选题:将x+y*z中的“+”用成员函数重载,“*”是友元函数重载应写为( )。 题目分类:C++ 题目类型:单选题 查看权限:VIP 题目内容: 将x+y*z中的“+”用成员函数重载,“*”是友元函数重载应写为( )。 A.operator+(operator*(y,z)) B.x.operator+(operator*(y,z)) C.x.operator+(X*(y,z)) D.x+(operator*(y,z)) 参考答案: 答案解析:
有下列程序: #include<stdi0.h> intfun(intx,inyy){if(x==y)return(x) 有下列程序: #include intfun(intx,inyy){if(x==y)return(x); elsereturn((x+ 分类:C++ 题型:单选题 查看答案
有下列程序: #include<stdi0.h>voidmain( ) {char*a[]={"abed","ef", 有下列程序: #includevoidmain( ) {char*a[]={"abed","ef","gh","ijk");inti; 分类:C++ 题型:单选题 查看答案
有下列程序: #include<stdi0.h>voidmain( ) {inta=1,b=2,c=3,d=0; if 有下列程序: #includevoidmain( ) {inta=1,b=2,c=3,d=0; if(a==1&&b++==2)i 分类:C++ 题型:单选题 查看答案
It would seem to be a general truth______nothing is as stra It would seem to be a general truth______nothing is as straightforward as it at 分类:C++ 题型:单选题 查看答案
What does the man worry about? What does the man worry about?A.His study. B.His friends. C.His car. 分类:C++ 题型:单选题 查看答案