I’ve been tinkering with with cin and getline to make sure I fully understand what’s going on. In the code below, I replaced the two bolded lines with either cin or getline and printed the output at the bottom to see what happens.