i've started learning c++ today. Now i think that i've got the basics, i couldn't get with this program i'm trying to execute. Basically all program need to do is, output the user first name, and last name. Now i got it to work, but i want that if the user input a random number, the program won't execute, and output "Only Text allowed. Please enter your name again: " also, how do i create space between the first and last name? would appreciate help. thanks!
this is the code:
int main()
{
int Num;
string First;
string Last;
cout << "Type in your first name please:";
cin >> First;
if (not sure what to declare here)
{
cout >> "No numbers allowed. only Text.";
}
cout << "Type your last name please:";
cin >> Last;
cout << "your full name is:" << " " << First + Last;
}