How to not send Enter Key with getline()

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'.
getline does not put the newline character in the string.
Really? I guess that I'm looking in the wrong place then. Thanks!
Topic archived. No new replies allowed.