what is the difference between cin; cin.getline(); and gets_s? And when do I need to use cin.ignore()?
I am confuse about using cin; cin.getline() and gets_s. I understand that cin can be used to input all data types and cin.getline() is only for strings and gets_s is for struct.