#include <iostream>
#include <string>
using namespace std;
/**
Makes a personalized greeting
*/
string greet(const string& name) {
return "Hello " + name + "!";
}
int main() {
string your_name;
cout << "What is your name? ";
cin >> your_name;
string greeting = greet(your_name);
cout << greeting;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: