Created
October 7, 2014 23:18
-
-
Save samrocketman/2c552370cd8cb37ac74f to your computer and use it in GitHub Desktop.
A sample c++ function.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int add(int a, int b) | |
| { | |
| return a+b; | |
| } | |
| int main(void) | |
| { | |
| int x; | |
| x=add(2,3); | |
| cout << x << endl; | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment