That comes from mixing input types. Mixing cin >>
with getline()
will cause this. One way to stop it is to put cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n')
after every call to cin >>
. You will need to include the limits header for this to work.
NathanOliver 429 Veteran Poster Featured Poster
NathanOliver 429 Veteran Poster Featured Poster
NathanOliver 429 Veteran Poster Featured Poster
NathanOliver 429 Veteran Poster Featured Poster
NathanOliver 429 Veteran Poster Featured Poster
CoolAtt commented: yes it crashed +2
NathanOliver 429 Veteran Poster Featured Poster
NathanOliver 429 Veteran Poster Featured Poster
NathanOliver 429 Veteran Poster Featured Poster
NathanOliver 429 Veteran Poster Featured Poster
NathanOliver 429 Veteran Poster Featured Poster