cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to capture a newline?
How to capture a newline?
Feb 22, 2012 at 12:07am UTC
rozick1
(218)
Just as getline (cin, string x) captures the whole line instead of stopping at a newspace char (as cin >> does) how can I capture a newline character. If it helps I want to use fstream to read in more than one line at a time.
Thanks!
Topic archived. No new replies allowed.