必典考网

1)#include 2)#include 3)using namespace std;4)double ma

  • 下载次数:
  • 支持语言:
  • 1053
  • 中文简体
  • 文件类型:
  • 支持平台:
  • pdf文档
  • PC/手机
  • 【名词&注释】

    多态性(polymorphism)、字符串(string)、表达式、初始化(initialization)、二义性、开平方(extraction of square root)、派生类(derived class)、头文件、适用于(suitable for)、大括号(brace)

  • [单选题]1)#include 2)#include 3)using namespace std;4)double max(double x,doubley)5){6)if(x>y)7)return x;8)else9)return y;10)}11)int main()12){13)doublea,b,c;14)cout a >> b;16)c=max(a,b);17)cout

  • A. C

  • 查看答案&解析 查看所有试题
  • 学习资料:
  • [单选题]1)#include2)usingnamespacestd;3)intmain()4){5)inta,b,result;6)couta>>b;8)result=3*a-2*b+1;9)cout
  • A. C

  • [单选题]1)#include 2)using namespace std;3)int main()4){5)int a,b,result;6)couta>>b;8)result=3*a-2*b+1;9)cout
  • A. D

  • [单选题]1)#include2)#include3)usingnamespacestd;4)doublemax(doublex,doubley);5)voidmain()6){7)double a,b,c;8)couta>>b;10)c=max(a,b);11)cout
  • A. C

  • [单选题]1)#include 2)# include 3)using namespace std;4)double max(double x,doubley);5)void main()6){7)double a,b,c;8)cout >a>>b;10)c=max(a,b);11)cout
  • A. B

  • [单选题]1)#include 2)#include 3)using namespace std;4)double max(double x,doubley)5){6)if(x>y)7)return x;8)else9)return y;10)}11)int main()12){13)doublea,b,c;14)cout a >> b;16)c=max(a,b);17)cout
  • A. D

  • [单选题]下面关于C++的说法,不正确的是()。
  • A. C++是由BjarneStroustrup博士开发成功的
    B. C++保留了C语言原有的优点,增加了面向对象的机制
    C. C++和C语言没有任何关系
    D. C++与C语言兼容

  • [单选题]下面叙述不正确的是()
  • A. 派生类(derived class)一般都用公有派生
    B. 对基类成员的访问必须是无二义性的
    C. 赋值兼容规则也适用于(suitable for)多重继承的组合
    D. 基类的公有成员在派生类(derived class)中仍然是公有的

  • [单选题]所谓多态性是指()
  • A. 不同的对象调用不同名称的函数
    B. 不同的对象调用相同名称的函数
    C. 一个对象调用不同名称的函数
    D. 一个对象调用不同名称的对象

  • 本文链接:https://www.51bdks.net/show/o85jlj.html
  • 推荐阅读

    @2019-2025 必典考网 www.51bdks.net 蜀ICP备2021000628号 川公网安备 51012202001360号