codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
//#include <stdafx.h> // Visual Studio users need to uncomment this line #include <iostream> // add takes two integers as parameters, and returns the result of their sum // add does not care what the exact values of x and y are int add(int x, int y) { return x + y; } int main() { using namespace std; // It is the caller of add() that decides the exact values of x and y cout << add(4, 5) << endl; // x=4 and y=5 are the parameters return 0; }
Private
[
?
]
Run code