Skip to content

Instantly share code, notes, and snippets.

@samrocketman
Created October 7, 2014 23:18
Show Gist options
  • Select an option

  • Save samrocketman/2c552370cd8cb37ac74f to your computer and use it in GitHub Desktop.

Select an option

Save samrocketman/2c552370cd8cb37ac74f to your computer and use it in GitHub Desktop.
A sample c++ function.
#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