• 1)#include

    2)#include
    3)using namespace std;
    4)double max(double x,doubley)
    5){
    6)if(x>y)
    7)return x;
    8)else
    9)return y;
    10)}
    11)int main()
    12){
    13)doublea,b,c;
    14)cout>a >>b;
    16)c=max(a,b);
    17)cout正确答案:本题C本题解析:第13行定义了3个double型的变量a、b、c,double即双精度浮点型。
  • 2021年07月08日 21时35分来自  问答库 >> 计算机类
  • 评论 0
  • 手机玩微博

    手机版 手机端
    Powered by 日新微博 © 2018 - 2020 日新网