填空题

请定义一个函数名为A,返回值为int,没有参数的纯虚函数的定义是【 】。

【参考答案】

virtual int A( )=0;
<上一题 目录 下一题>
热门 试题

填空题
若要在C盘根目录下作为二进制文件打开文件test.dat,则应该用的语句是【 】。
填空题
以下程序中函数 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...
  • 问题处理方案的正确而完整的描述称为___...