// overload_01.cpp -- a very simple overloading example
#include <iostream>
#include <string>
using namespace std;

void printGreet(int x);
void printGreet(string str);

int main() {
  string st1 = "Peter";
  string st2 = "Mary";

  printGreet(4);
  printGreet(st1);
  printGreet(-7);
  printGreet(st2);

}

void printGreet(int x) {

  cout << "Hello there integer. Its nice to meet you, " << x << ".\n";

}

void printGreet(string str) {

  cout << "Hello there string. Its nice to meet you, " << str << ".\n";

}

