首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列重载函数中,正确的是( )。
下列重载函数中,正确的是( )。
admin
2021-05-06
20
问题
下列重载函数中,正确的是( )。
选项
A、void fun(int a,float b);void fun(int C,float d)
B、void fun(int a,float b);void fun(float a,int b)
C、float fun(int a,float b);int fun(int b,float a)
D、int fun(int a,int b);float fun(int a,int b)
答案
B
解析
所谓函数重载是指同一函数名可以对应多个函数实现。进行函数重载时,要求同名函数在参数个数上不同,或者参数类型上不同。
转载请注明原文地址:https://kaotiyun.com/show/MLfp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
使用VC6打开考生文件夹下的源程序文件modi1.cpp,该程序运行时有错误,请改正程序中的错误,使得程序运行后没有内存遗漏。可以在修改处增加或者删除一条语句。本程序完成输入两个字符串,分别存储到s1,s2中。注意:不要改动main函数,不能增行
使用VC6打开考生文件夹下的源程序文件modi2.cpp。阅读下列函数说明和代码。函数func(intd[],intn)的功能是将长度为num的数组d的每一个数字是奇数的扩大l倍,并存储到数组d中。例如:123456789
有如下程序:#include<iostream>usingnamespacestd;classBase{intx;public;Base{intn=0};x(n){cout<<n;}
有如下程序:#include<iostream>#include<iomanip>usingnamespacestd;intmain(){cout<<setfill(’#’)<<setw(4)<<"OK"<<123<<endl;retur
下列关于运算符重载的叙述中,正确的是()。
数据库设计过程不包括()。
使用VC6打开考生文件夹下的源程序文件modi2.cpp。阅读下列函数说明和代码,补充空出的代码。函数convert(char*des,char*str)实现的功能是,如果字符串str里面有空格或者不可打印字符,则全部去掉,将转化后的字符串放在字符串des
下列有关继承和派生的叙述中,正确的是()。
某二叉树中有n个度为2的结点,则该二叉树中的叶子结点数为
下面对软件测试描述错误的是
随机试题
下列表述中错误的是()。
发生霍乱时,对疫区接触者的检疫期是
女,28岁,孕28周,胎方位为枕左前位,听取胎心音的部位应在
压力管道年度检查是指使用单位在管道运行条件下进行的检查。根据《压力管道定期检验规则一工业管道》(TSGD7005),压力管道年度检查的内容有()。
监理实施细则中应当明确安全生产监理的方法、措施和控制要点,以及()。
以下表述中,属于经济批量基本模式假设的有()。
某企业上年销售收入为1000万元,若预计下一年通货膨胀率为5%,公司销量下降2%,所确定的外部融资占销售增长的百分比为25%,则相应外部应追加的资金为()万元。
中国是一个多民族国家,各民族在中华民族大家庭中,要像石榴籽那样紧紧抱在一起,同心共筑中国梦。这要求()。①尊重民族差异,包容文化多样②建立平等团结互助和谐的新型民族关系③民族自治地方享有高度自治权④各民族守望相助、共同发展
=_______.
Almosteveryfamilybuysatleastonecopyofanewspapereveryday.Somepeoplesubscribe(订阅)toasmanyastwoorthreenewspa
最新回复
(
0
)