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
skipping characters with operator>>
skipping characters with operator>>
Nov 29, 2016 at 12:26am UTC
bluefrog
(125)
I found the following post on skipping white space characters with the operator>>
http://stackoverflow.com/questions/21764826/skipping-expected-characters-like-scanf-with-cin
Is it possible however to skip other types of characters?
For example, if I had
lll ooo ppp 12 13 14
and I only want to read in 12 13 and 14 into 3 separate variables, regardless of whether the input was from file or keyboard.
I don't want to use any of the "get" functions.
Topic archived. No new replies allowed.