// decides if word is in first or last half of alphabet
cout<<"Enter a word ";
cot<<word<<" is in the first half of the alphabet"<<edl;
cot<<word<<" is in the last half of the alphabet"<<edl;
Does your code compile? If not, what are the exact compiler error messages?
If it compiles, does it crash on running? If yes, how far does it get before the crash?
If it runs to completion, does it produce expected result?