First page
Back
Continue
Last page
Graphics
CIN
So, this is the configuration when the next cin statement is executed:
cin.getline(name, 25);
cin sees the new line character and stops.