View Single Post
Old 05-06-2008, 06:25 AM   #2 (permalink)
jamiemac2005
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Northampton, UK
Posts: 935
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)


Re: Ada Type checker

Hey sorry but i dont know the language you're using...

But....Could it be compared with an integer (which represents the letter) e.g. if X = 1 (representing 'a') or could you use an integer and convert it into a character for the check...

e.g. if X = Char(1); sorry this wont be in any way accurate, but data conversion between ordinal types (integer and character) should be easy?

if theres a char function then you could use a for loop then use the char function to check each digit (though it would probably be ascii so 1 would not be a etc)...

Hope any of this helps,
Jamey
jamiemac2005 is offline   Reply With Quote