|
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
|