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
HELP
HELP
Sep 20, 2016 at 1:30am UTC
fivestar
(180)
Is there a way to check if a certain char appears at the end of an input. For example if someone enters 33566$, how would you catch the '$' and store it into a char variable .
Sep 20, 2016 at 1:34am UTC
SakurasouBusters
(732)
1
2
3
4
5
int
a;
char
b; std::cin >> a;
b = std::cin.peek();
Topic archived. No new replies allowed.