cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
String exception
String exception
Sep 24, 2011 at 10:57am UTC
Donanza
(129)
Hi guys!
I am trying to make a game, but if the user inputs a string, i want to throw an
exception. How can i make this exception of the string?
Sep 24, 2011 at 10:59am UTC
hanst99
(2869)
You need to learn how to properly articulate yourself, else no one will know what you are actually trying to say.
Oct 3, 2011 at 9:50pm UTC
Donanza
(129)
If a user inputs a string like A or B or CC or..... The result should be:
ERROR 1: You entered a string
How can i make this?
(the real reason for this is that i want the user to input only numbers not string | double)
Last edited on
Oct 3, 2011 at 9:51pm UTC
Topic archived. No new replies allowed.