文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.