So the program originally checked if the input was a Gtld ( .com .net .org and .info ) and then put out a yes or no answer. Then I had to modify the code so that someone could input the Gtld's without the . in front and it would still be valid. I solved the problem but I feel like I could shorten up the code and do the same thing...
#include <iostream>
#include <string>
#include <cctype>
using namespace std;