Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Only number not...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 43971 of 47562
Post > Topic >>

Only number not alphabet. how? c++

by kundasang@[EMAIL PROTECTED] Mar 18, 2008 at 07:55 AM

Hello,

how to do simple code for:

if(alphabet)
 output ERROR

because char is int I cannot do like this:
if(sale >= 'a' && sale =< 'z')

because if my sale is 98 it will output error because b is 98.

I want number, not character.
how?

Thank you.
 




 6 Posts in Topic:
Only number not alphabet. how? c++
kundasang@[EMAIL PROTECTE  2008-03-18 07:55:22 
Re: Only number not alphabet. how? c++
"Victor Bazarov"  2008-03-18 11:00:43 
Re: Only number not alphabet. how? c++
Junchen WANG <WangJunc  2008-03-18 08:02:35 
Re: Only number not alphabet. how? c++
Paavo Helde <nobody@[E  2008-03-18 14:41:43 
Re: Only number not alphabet. how? c++
"Robbie Hatley"  2008-03-18 23:33:37 
Re: Only number not alphabet. how? c++
James Kanze <james.kan  2008-03-19 03:55:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 8:01:19 CDT 2008.