Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created August 12, 2019 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetterProgramming/1dfefa30d32c7fc44b2564ae75aa06b9 to your computer and use it in GitHub Desktop.
Save BetterProgramming/1dfefa30d32c7fc44b2564ae75aa06b9 to your computer and use it in GitHub Desktop.
#include <iostream>
int Sum(int a, int b)
{
return a + b;
}
float Sum(float a, float b)
{
return a + b;
}
int main(int argc, const char * argv[]) {
std::cout << "Integer Sum: " << Sum(5, 4) << "\n";
std::cout << "Float Sum: " << Sum(3.6f,1.25f) << "\n";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment