填空题

一个节点的子节点个数称为该节点的______。

【参考答案】

度
<上一题 目录 下一题>
热门 试题

填空题
以下程序运行后的输出结果是______。 #include <iostream> #include <string> using namespace std; class Y; class X int x; char *strx; public: X(int a,char *str) x=a; strx=new char[strlen(str)+1]; strcpy(strx,str); void show(Y &ob) ; ; class Y private: int y; char *stry; public: Y(int b,char *str) y=b; stry=new char[strlen(str)+1]; strcpy(stry, str); friend void X::show(Y &ob) ; ; void X::show(Y &ob) cout<<strx<< , ; cout<<ob.stry<<end1; int main() X a(10, stringX ); Y b(20, stringY ); a. show (b) ; return O;
填空题
若有以下程序: #include <iostream> using namespace std; #define PI 3.14 class Point private: int x,y; public: Point (int a,int b) x=a; y=b; int getx () return x; int gety() return y; ; class Circle : public Point int r; public: Circle(int’ a, int b,int C) : Point (a, b) r=c; int getr() return r; double area() return PI*r*r; ; int main() Circle c1(5,7,10); cout<<c1.area()<<end1; return 0; 程序执行后的输出结果是______。
相关试题
  • 下列定义中,x是一个类, ______ ...
  • 在重载一个运算符时,如果其参数表中有一个...
  • 若执行下面的程序时,从键盘上输入5和2,...
  • CMM提供了一个框架,将软件过程改进的进化...
  • 下列数据模型中,具有坚实理论基础的是()