填空题

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

【参考答案】

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

填空题
下列程序的输出结果为 Object id=0 Object 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;
填空题
下列程序的输出结果是______。 #include <iostream> using namespace std; int main() int i=5; int &r = i;r = 7; cout<<i<<endl; return 0;
相关试题
  • 有以下程序: #include <iostream> u...
  • 已知int DBL(int n)return n+n;和lo...
  • 有以下程序 #include <iostream> usi...