单项选择题

关于友元的概念错误的是( )。

A.If x>=y Then z=x:z=y
B.If x>=y Then z=x Else z=y
C.z=y:If x>=y Then z=x
D.If x<=y Then z=y Else z=x
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序的结果是( )。#include<iostream.h>class test{ private:int num;public:test( );int getint( ) {return num;}~test( );};test::test( ){ num=0;}test::~test( ){ cout<< Destructor is active <<endl;}void main( ){ test x[3];cout<< Exiting main <<endl;}
A. Exiting main  Destructor is active  Destructor is active  Destructor is active
B. Exiting main  Destructor is active  Destructoris active
C. Exiting main  Destructoris active
D.Exiting main
单项选择题
设变量a是int型,f是double型,i是float型,则表达式10 + ''a'' + i * f 值的数据类型是( )。
A. int
B. float
C. double
D. 不确定
相关试题
  • 在面向对象方法中,类的实例称为_____...
  • 某二叉树中度为 2 的结点有 18 个,...
  • 已知数组a中的元素个数为n,下列语句的作用...
  • 【 】是一系列相关函数的模型或样板,这些...
  • C++语言的参数传递机制包括传值和传地址...