Code:
#include <iostream>
#include <string>
using namespace std;
void main()
{
string name;
cout << "Enter your Full Name: " << endl;
getline(cin, name);
cout << endl;
}
I'd like to display a message saying "Please enter a valid Input" when the user inputs any value other than alphabets.