1. Use getline instead of cin inside the loop of question and answers
2. Use < instead of <= in the student's question and answers loop.
cout <<"\nEnter question number "<< i <<"\n";
cin >> ws; // added for whitespace
cout <<"\nEnter the answer for question number "<< i <<"\n";
Last edited on
Thanks meeram, that did it and learned a lot about vectors tonight