| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
C++ integer check problem
|
Original Message
|
Name: z28Power
Date: February 18, 2003 at 22:17:25 Pacific
Subject: C++ integer check problem OS: Win XP CPU/Ram: 2100+/256MB
|
Comment: I'm writing a minimax algorithm to play tictactoe and wanted to add a little bit of error checking. the problem is that I'm inputting integers and thought there was a function in stdlib or somewhere that allows you to check isNumeric or something like that (not for char.) Anybody know what I'm talking about and what library it's in? Thanks.
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: borelli34
Date: February 19, 2003 at 00:29:58 Pacific
|
Reply: (edit)If you are using visual c++ look in ctype.h for isdigit or iswdigit function. borelli34
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home