This program is suppose to grab the first letter of each name and then output the initials.
#include <iostream>
using namespace std;
const char blank= ' ';
const char newline= '\n';
void main()
{
//Declare character variables
char firstInitial, middleInitial, lastInitial;
cout<<" Please enter first, middle, and last name separated by spaces "<< newline;
cin.get(firstInitial);
cin.ignore(100,blank);
cin.get(middleInitial) ;
cin.ignore(100,blank);
cin.get(lastInitial);
cin.ignore(100,blank);
cout << "The initials are: "<< firstInitial, middleInitial, lastInitial;
system("pause");
}