How to not send Enter Key with getline()

Sep 30, 2018 at 6:44pm
I am wondering how I can remove the Enter Key from a string that is being sendt through getline()?

Say I want to send the number "100" as it is '1', '0', '0', without including the Enter Key; '1', '0', '0', '\n'.
Sep 30, 2018 at 7:12pm
getline does not put the newline character in the string.
Sep 30, 2018 at 8:03pm
Really? I guess that I'm looking in the wrong place then. Thanks!
Topic archived. No new replies allowed.