How to store the ASCII value in a character (Ada 83 Only) -
How do I store the ascii value in a character (say 33) I want something like that in Aida 83 No, not 95
c: code
char c = 10; char * k = & amp; C; Strncat (des, k, 1); printf ("% s", des); Thanks!
c: letter: = character 'val (10); or
C: Character: = ASCIILF; The first work in all the editions of the ADA was the standard method in the second ada 83; It is now the obsolete new way
C: character: = ADA. Latin_1.lf; More information: In ADA, character is a calculator type, not an integer type, therefore, you can not assign an integer to it in the integer ' Val is a ADA method to convert an integer into a calculation; Enum_Type'Val (N) means the Nth calculation defined for "math type, 0-relative". To go to the other side, Enum_Type'Pos (E) returns the integer corresponding to the status of the E in the list.
Comments
Post a Comment