I am working on a program that asks the user for a first name but the characters have to be all alphabetic characters. I get it to run almost correct but when i input a plain name without special characters or numbers i get my output multiple times.
here is my coding
using namespace std;
cout << "What's your first name?" << endl;
cin >> name;
plus i just found another bug. it outputs the entire input with the invalid character instead of just the invalid character along with outputing valid name for the number of times there are characters.