题目内容

设有如下程序:#include <iostream. h>class Apublic:int i;display() cout<<"class A\n"; ;class Bpublic:int i;display() cout<<"class B\n"; ;class C: public: A, public: Bint j;public:int i;show() j=i*i; display(); ;void main()C demo;demo. show();则主程序运行时,将( )。

A. 因为变量i的重复定义而报错
B. 因为对象demo间接调用display函数时产生歧义性而报错
C. 因为类定义的语法错误而不能运行
D. 没有语法错误,能够正常输出结果

查看答案
更多问题

药用花序的药材为

A. 蒲黄
B. 红花
C. 西红花
D. 旋覆花
E. 丁香

下面程序的输出结果为 【10】 。#include<iostream.h>f(int a)int b=0; static int c=3; b++; c++; return(a+ b+ c);void main()int a=2,i; for(i=0;i<3;i++) cout<<f(a)<<end1;

情景:用英语给你的朋友王林发一条短信息(约50字),内容要点如下: ①有两张今晚足球赛的门票,邀请他一起去观看。 ②今晚6:30在黄龙体育场大门口等待。 ③请他马上发回短信息,让你知道他是否能去。

The baskets of apples made the students very happy. The students were very happy ______.

答案查题题库