![]() |
|
#1
|
|||
|
|||
How to validate the number of inputted digits?My program has a user input of 8 digits. But, I'm suppose to provide a error if the input falls short or to many of the 8 digits. How can I do this?
Relation Operators?? |
|||
|
#2
|
|||
|
|||
Re: How to vailidate the number of inputted digits?Quote:
|
|
#3
|
|||
|
|||
Re: How to vailidate the number of inputted digits?Quote:
I though of using a string, but it's not allowed at this time. |
|
#4
|
|||
|
|||
Re: How to vailidate the number of inputted digits?Quote:
|
|
#5
|
|||
|
|||
Re: How to vailidate the number of inputted digits?Quote:
It actually can be any 8 digits, that's my problem. Anything else? |
|
#6
|
|||
|
|||
Re: How to vailidate the number of inputted digits?Quote:
If leading zeroes are allowable, then you need to make some decisions/adjustments:
|
|
#7
|
||||
|
||||
Re: How to vailidate the number of inputted digits?Quote:
CPP / C++ / C Code:
MxB |
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to show a 3 digit number with separate digits showing | fomi101 | C++ Forum | 9 | 29-Sep-2007 13:50 |
| Reverse a number or digits | tootoo | C++ Forum | 6 | 29-Jul-2007 20:34 |
| Converting a number amount to text | Godzilla | C++ Forum | 5 | 31-Mar-2006 11:38 |
| Anyone can write a program code for this??? | chriskan76 | C Programming Language | 1 | 19-Oct-2004 20:25 |
| Apache2 config issues | monev | Apache Web Server Forum | 2 | 28-Jun-2004 06:19 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The