![]() |
|
#11
|
|||
|
|||
Re: Help approaching a programi am wondering if u already studied Class, so u may wanna first combine all ur data into a
CPP / C++ / C Code:
|
|||
|
#12
|
||||
|
||||
Re: Help approaching a programQuote:
Quote:
Quote:
Also, if you are checking a number, using isalnum() will return the wrong information. You want isdigit() to test for numbers. And if you need upper case only, isupper() is the magic function. Quote:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#13
|
|||
|
|||
Re: Help approaching a programQuote:
|
|
#14
|
|||
|
|||
Re: Help approaching a programI am really sorrry for posting so much, please, take a look at my validation for the student Number (Should be 9 of length and only alpha/digits).. ok the length validation seems to be working right.. but the alpha/digits isn't I also tried using isalnum (which supposely checks for both but still not working).. can you see any errors?
CPP / C++ / C Code:
|
|
#15
|
|||
|
|||
Re: Help approaching a programQuote:
|
|
#16
|
|||
|
|||
Re: Help approaching a programOk, i did my best here i asked you before if you covered topics like Dynamic Array, Classes, Pointers... I hope this will help you to get an idea, you may find a better solution some where else.
This is your Header File: CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
Now on the testing the string with 9 digit format you can use this code CPP / C++ / C Code:
modify it according to your needs. |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Greatest and smallest integers | bostero22 | C++ Forum | 8 | 01-Nov-2008 00:13 |
| Equation solver | RazoR | C Programming Language | 3 | 18-May-2008 10:24 |
| Two-Tier data dissemination code installation problem | nidhibansal1984 | Computer Software Forum - Linux | 6 | 16-Sep-2007 11:13 |
| Help with a complex program | lordfuoco | C++ Forum | 5 | 24-Jun-2006 07:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The