how can we check that user [B]inter [/B]an [B]integer[/B] or not?
kashifboy
0
Newbie Poster
Recommended Answers
Jump to Postare you asking about how to identify whether user entered a integer or other?
well one way of doing that is fetching the input stream (std::cin) to (std::string) and then parse it for correct format.For that you can write your own state machine or
you can use regex for …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.