All pastes #77234 Raw Edit

Nimbus

public cpp v1 · immutable
·published 2006-07-02 20:19 UTC
rendered paste body
// A Demostration of Function Overloading#include <iostream>int Double(int);long Double(long);using namespace std;int main(){	int myInt = 2000	long myLong = 200000		int doubledInt;	long doubledLong;		cout << "myInt: " << myInt << "\n";	cout << "myLong: " << myLong << "\n";		doubledInt = Double(myInt);	doubledLong = Double(myLong);		cout << "doubledInt: " << doubledInt << "\n";	cout << "doubledLong: " << doubledLong << "\n";		char response;	cin >> response;	return 0;}int Double(int orginal){	cout << "In Double(int)\n";	return 2 * orginal;}long Double(long orginal) {	cout << "In Double(long)\n";	return 2 * orginal;}