My Question/Problem:
Right now my program is using cin >>
to get input and thats working fine except for I need to use getline()
at one point and I know I shouldn't mix things like getline()
and cin.get()
with cin >>
. How do I input an integer without using >>
?
Research:
I've tried to research this, but every result I find says to use cin >>
This is the closest I've found.
I would be just as happy to find a way to avoid using getline()
.