填空题

具有相同函数名不同参数表的函数称为 【6】 。

【参考答案】

重载函数
<上一题 目录 下一题>
热门 试题

填空题
如下程序声明了一个电话号码类PhoneNumber,重载了流插入运算符<<,以便于电话号码的输出。请将程序补充完整。 #include<iostream> #include<iomanip> #include<string> using namespace std; class PhoneMunber public: void setNumber(string number)this->number=number; 重载流插入操作符 friend______(ostream &output,const PhoneNumber &num) output<<num.number;returnoutput; private: string number; ); int main() PhoneNumber phone; phone.setNumber(“8008100598”); cout<<“The phone number is:”<<phone<<endl; return 0; )
填空题
浮点数的默认精度值是______。
相关试题
  • 函数swap(arr,n)可完成对arr数组从第1...
  • 在程序设计阶段应该采取______和逐步...
  • 栈顶的位置是随着 【3】 操作而变化的。
  • 软件维护活动包括以下几类:改正性维护、适...
  • 下列程序的输出结果为2,请将程序补充完整...