So the program I am currently working on keeps cutting off the first letter of the first name that is entered. It hasn't cut off any other letter from any other name and I was wondering why it might be doing this? I'm using Dev C++ and the project works, other than cutting off the first letter of the first name typed in...
I believe your the error is coming from line 74. Getline and loops don't work very well together. Declare a char variable, doesn't matter the name is, and replace the cin.ignore() with cin.get('char').
This seemed to help the loops for some of the students.
char ans;
Grades testExam;
char names;
do
{
cout << "Enter the name of the student: ";
cin.get(names);
I just copied the part that I changed and it's still wanting to take off the first letter of the first name typed in. Thank you for all the help that is given
Thanks for the help. I figured out that the cin.get() right after my cout statement was ignoring the letter. I just moved that to the end of the loop and it's working like a charm.