30 - Function Overloading
#include <iostream>
using namespace std;
void printNumber(int x)
{
cout<<"i am printing an integer " << x << endl;
}
void printNumber(float x)
{
cout<<"now i am printing a float " << x << endl;
}
int main()
{
int a = 54;
float b = 32.4896;
printNumber(a);
printNumber(b);
}
相關文章
- JavaScript中的函式過載(Function overloading)JavaScript函式Function
- Java:Overriding與Overloading薦Java
- javascript 中function(){},new function(),new Function(),Function 摘錄JavaScriptFunction
- 0403-030 The fork function failed. Too many processes already existFunctionAI
- $(function(){})與(function($){....})(jQuery)的區別FunctionjQuery
- JavaScript FunctionJavaScriptFunction
- javascript Function()JavaScriptFunction
- sendDataByUdp FunctionUDPFunction
- Substr FunctionFunction
- Function : dumpFunction
- [Bash] functionFunction
- Javascript 物件導向學習1 Function function ObjectJavaScript物件FunctionObject
- DMSQL WITH FUNCTION子句SQLFunction
- JavaScript Function物件JavaScriptFunction物件
- python FunctionPythonFunction
- Function型別Function型別
- jQuery中$(function(){})jQueryFunction
- js的functionJSFunction
- 函式(FUNCTION)函式Function
- oracle function overviewOracleFunctionView
- 常用Function ModuleFunction
- FUNCTION : vsizeFunction
- System-FunctionFunction
- Oracle Table FunctionOracleFunction
- oracle function powerOracleFunction
- Function pointers and callbacksFunction
- java.util.function 中的 Function、Predicate、ConsumerJavaFunction
- C++ function pointersC++Function
- JavaScript function 函式JavaScriptFunction函式
- Function.prototype.callFunction
- A.Calculating FunctionFunction
- JavaScript中的 FunctionJavaScriptFunction
- bypass disable_functionFunction
- drools中使用functionFunction
- jasmine.any(Function)ASMFunction
- addEventListener("touchend", function ()_devFunction
- (function($,window,document){.......})用法Function
- Uncaught TypeError: i is not a functionErrorFunction