文件名称:4
介绍说明--下载内容均来自于网络,请自行研究使用
利用函数重载定义3个同名函数swap实现交换两个变量的值(形参为引用,函数内联),分别实现两个int型、double型和char型变量的值的交换,主函数实现输出和函数调用。
-Use function overloading to define three namesake function swap swap the values of two variables to achieve (a reference parameter, function inlining), respectively, to achieve the exchange of type int, the value of both double-and char type variables, the main function to achieve output and function calls.
-Use function overloading to define three namesake function swap swap the values of two variables to achieve (a reference parameter, function inlining), respectively, to achieve the exchange of type int, the value of both double-and char type variables, the main function to achieve output and function calls.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
4作业.doc