what is the difference between cin.get() and cin.getline()?
And what’s the use of cin.get() in this code?
Difference between cin.get() and cin.getline()
@sroy3166 cin.getline() reads input up to ‘\n’ and stops
cin.get() reads input up to ‘\n’ and keeps ‘\n’ in the stream