#include "cstring"
#include "iostream"
.....
string name;
getline(cin, name);
cout << "Hello, " << name << endl;

Нэ?