填空题

执行语句序列 int x=10,&r=x; cout<<x<<’-’<<r<<endl; 输出结果为______。

【参考答案】

10-10
<上一题 目录 下一题>
热门 试题

填空题
假定用户没有给一个名为MyClass的类定义析构函数,则系统为其定义的默认析构函数首部形式为______。
填空题
下列程序的输出结果为Object id=0Object id=1请将程序补充完整。#include <iostream>using namespace std;class Point{public:Point(int xx=0,int yy=0) {X=xx;Y=yy;countP++;}~Point(){countP--;}int GetX(){return X;}int GetY(){return Y;}static Void GetC(){cout<< Object id= <<countP<<endl;}private:int X,Y;static int countP;};______ 静态数据成员的初始化int main (){Point::GetC();Point A(4,5);A.GetC();return 0;}
相关试题
  • 下面是复数类complex的定义,其中作为友元...
  • 有以下程序:#include <iostream>using...
  • 有以下程序#include <iostream>using ...
  • 有以下程序#include <iostream>using ...
  • 下列程序的输出结果是______。#incl...