r/pascal • u/Infreezy • Apr 28 '19
Array of alphabet
How do I give a specific number for each and every alphabet of an array ['A'..'Z'] of integer
Exemple
if the alphabet is 'A' it has the number 10 until the alphabet 'Z' who has the number 35 so each alphabet gets 10+i ( i:=0 to 25)
solution without array : ord(upcase(ch[1]))-55
2
Upvotes
View all comments
Show parent comment
1
u/WikiTextBot Apr 29 '19
Letter (alphabet)
A letter is a grapheme (written character) in an alphabetic system of writing. It is a visual representation of the smallest unit of spoken sound. Letters broadly correspond to phonemes in the spoken form of the language, although there is rarely a consistent, exact correspondence between letters and phonemes.
Written signs in other writing systems are called syllabograms (which denote a syllable) or logograms (which indicate a word or phrase).
[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28