Skip to content

Instantly share code, notes, and snippets.

@laiso
Created January 21, 2010 12:41
Show Gist options
  • Save laiso/282771 to your computer and use it in GitHub Desktop.
Save laiso/282771 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
using namespace std;
void
helloWorld(string say)
{
cout << say << endl;
}
void
helloworld(string say)
{
cout << say+say << endl;
}
int
main()
{
string someValue = "Hello";
string somevalue = "World";
helloWorld(someValue+somevalue); // HelloWorld
helloworld(someValue+somevalue); // HelloWorldHelloWorld
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment