填空题

静态成员函数可以直接访问类的【 】成员,不能直接访问类的【 】成员。

【参考答案】

静态
<上一题 目录 下一题>
热门 试题

填空题
将x+y中的+运算符用友元函数重载应写为【 】。
填空题
以下程序中函数 fun 的功能是:构成一个如图所示的带头结点的单向链表,在结点 的数据域中放入了具有两个字符的字符串。函数 disp 的功能是显示输出该单向链表 中所有结点中的字符串。请填空完成函数 disp。headab cd ef 0 #include typedef struct node *链表结点结构* { char sub[3];struct node *next; }Node;Node fun(char s) * 建立链表* { …… }void disp(Node *h){ Node *p;p=h->next;while(= _______ ){ printf( %s n ,p->sub);p= _______ ; }}main(){ Node *hd;hd=fun(); disp(hd);printf( n );}
相关试题
  • 以下程序的输出结果是【 】。#include<i...
  • 设置虚基类的目的是【 】,通过【 】表示...
  • 程序测试分为静态分析和动态测试。其中__...
  • 下列程序的输出结果是【 】。#inClude<i...