12.07.2015 Views

Ο Πινακας ASCII

Ο Πινακας ASCII

Ο Πινακας ASCII

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Ο</strong> <strong>Πινακας</strong> <strong>ASCII</strong>Καθε σύµβολο αποθηκεύεται µε τον <strong>ASCII</strong> 1 κωδικό του, ο οποίος είναι έναςθετικός ακέριος απο 0 έως 127. Ας σηµειωθεί ότι τα πρώτα 32 σύµβολα είναι µηεκτιπώσιµα σύµβολα, γιαυτό οι αντίστοιχες θέσεις στην πρώτη στήλη του πίνακαείναι συµπληρωµένες ή µε την αντίστοιχη σηρά-ελέγχου (control sequence) ή µετην αντίστοιχη σηρά-διαφυγής (escape sequence). Η σειρά-ελέγχου ενός µηεκτυπώσιµου συµβόλου, είναι ο συνδιασµός του πλήκτρου ελέγχου (Control key)και κατά περίπτωση κάποιου άλλου πλήκτρου, που πρέπει να πατηθεί συγχρόνως,ώστε να πάρουµε το εν λόγω σύµβολο. Για παράδειγµα, το σύµβολο end-of-file(<strong>ASCII</strong> code 4) εισάγεται µε τη σειρά ctrl-D. Η σειρά-διαφυγής ενός µηεκτυπώσιµου συµβόλου, είναι ο συνδιασµός του πλήκτρου ανάποδης καθέτου(backslash key) και κατά περίπτωση κάποιου άλλου πλήκτρου, που πρέπει ναδόσουµε, ώστε να πάρουµε το εν λόγω σύµβολο στη C και C++. Για παράδειγµα, τοσύµβολο αλλαγής γραµµής (<strong>ASCII</strong> code 10, new line character) στη C και C++,εισάγεται µε τη σειρά "\n".Character Description Decimal Octal Hex BinaryCtrl-@ Null, end of string 0 0 0x0 0000 0000Ctrl-A Start of heading l 01 0x1 0000 0001Ctrl-B Start of text 2 02 0x2 0000 0010Ctrl-C End of text 3 03 0x3 0000 0011Ctrl-D End of transmission, end of 4 04 0x4 0000 0100Ctrl-E file Enquiry 5 05 0x5 0000 0101Ctrl-F Acknowledge 6 06 0x6 0000 0110\a Bell,alert,system beep 7 07 0x7 0000 0111\b Backspace 8 010 0x8 0000 1000\t Horizontal tab 9 011 0x9 0000 1001\n Line feed, new line 10 012 0xa 0000 1010\v Vertical tab 11 013 0xb 0000 1011\f Form feed, new page 12 014 0xc 0000 1100\r Carriage return 13 015 0xd 0000 1101Ctrl-N Shift out 14 016 0xe 0000 1110Ctrl-0 Shift in 15 017 0xf 0000 1111Ctrl-P Data link escape 16 020 0x10 0001 0000Ctrl-Q Device control 1, resume 17 021 0x11 0001 0001scrollCtrl-R Device control 2 18 022 0x12 0001 0010Ctrl-S Device control 3, stop scroll 19 023 0x13 0001 0011Ctrl-T Device control 4 20 024 0x14 0001 0100Ctrl-U Negative acknowledgment 21 025 0x15 0001 01011 <strong>ASCII</strong> είναι ακρονύµιο του American Standard Code for Information Interchange


Character Description Decimal Octal Hex BinaryCtrl-W End transmission block 23 027 0x17 0001 0111Ctrl-X Cancel 24 030 0x18 0001 1000Ctrl-Y End of message, interrupt 25 031 0x19 0001 1001Ctrl-Z Substitute, exit 26 032 0x1a 0001 1010Ctrl-[ Escape 27 033 0x1b 0001 1011Ctrl-/ File separator 28 034 0x1c 0001 1100Ctrl-] Group separator 29 035 0x1d 0001 1101Ctrl-^ Record separator 30 036 0x1e 0001 1110Ctrl-_ Unit separator 31 037 0x1f 0001 1111Blank, space 32 040 0x20 0010 0000! Exclamation point 33 041 0x21 0010 0001" Quotation mark, double quote 34 042 0x22 0010 0010# Hash mark, number sign 35 043 0x23 0010 0011$ Dollar sign 36 044 0x24 0010 0100% Percent sign 37 045 0x25 0010 0101& Ampersand 38 046 0x26 0010 0110’ Apostrophe, single quote 39 047 0x27 0010 0111( Left parenthesis 40 050 0x28 0010 1000) Right parenthesis 41 051 0x29 0010 1001* Asterisk, star, times 42 052 0x2a 0010 1010+ Plus 43 053 0x2b 0010 1011, Comma 44 054 0x2c 0010 1100- Dash, minus 45 055 0x2d 0010 1101. Dot, period, decimal point 46 056 0x2e 0010 1110/ Slash 47 057 0x2f 0010 11110 Digit zero 48 060 0x30 0011 00001 Digit one 49 061 0x31 0011 00012 Digit two 50 062 0x32 0011 00103 Digit three 51 063 0x33 0011 00114 Digit four 52 064 0x34 0011 01005 Digit five 53 065 0x35 0011 01016 Digit six 54 066 0x36 0011 01107 Digit seven 55 067 0x37 0011 01118 Digit eight 56 070 0x38 0011 10009 Digit nine 57 071 0x39 0011 1001: Colon 58 072 0x3a 0011 1010; Semicolon 59 073 0x3b 0011 1011< Less than 60 074 0x3c 0011 1100= Equal to 61 075 0x3d 0011 1101> Greater than 62 076 0x3e 0011 1110


Character Description Decimal Octal Hex Binary? Question mark 63 077 0x3f 0011 1111@ Commercial at sign 64 0100 0x40 0100 0000A Letter capital A 65 0101 0x41 0100 0001B Letter capital B 66 0102 0x42 0100 0010C Letter capital C 67 0103 0x43 0100 0011D Letter capital D 68 0104 0x44 0100 0100E Letter capital E 69 0105 0x45 0100 0101F Letter capital F 70 0106 0x46 0100 0110G Letter capital G 71 0107 0x47 0100 0111H Letter capital H 72 0110 0x48 0100 1000I Letter capital I 73 0111 0x49 0100 1001J Letter capital J 74 0112 0x4a 0100 1010K Letter capital K 75 0113 0x4b 0100 1011L Letter capital L 76 0114 04xc 0100 1100M Letter capital M 77 0115 0x4d 0100 1101N Letter capital N 78 0116 0x4e 0100 11100 Letter capital 0 79 0117 0x4f 0100 1111P Letter capital P 80 0120 0x50 0101 0000Q Letter capital Q 81 0121 0x51 0101 0001R Letter capital R 82 1022 0x52 0101 0010S Letter capital S 83 0123 0x53 0101 0011T Letter capital T 84 0124 0x54 0101 0100U Letter capital U 85 0125 0x55 0101 0101V Letter capital V 86 0126 0x56 0101 0110w Letter capital W 87 0127 0x57 0101 0111X Letter capital X 88 0130 0x58 0101 1000Y Letter capital Y 89 0131 0x59 0101 1001Z Letter capital Z 90 0132 0x5a 0101 1010[ Left bracket 91 0133 0x5b 0101 1011\ Backslash 92 0134 0x5c 0101 1100] Right bracket 93 0135 0x5d 0101 1101^ Caret 94 0136 0x5e 0101 1110_ Underscore 95 0137 0x5f 0101 1111' Accent grave 96 0140 0x60 0110 0000a Letter lowercase a 97 0141 0x61 0110 0001b Letter lowercase b 98 0142 0x62 0110 0010c Letter lowercase c 99 0143 0x63 0110 0011d Letter lowercase d 100 0144 0x64 0110 0100e Letter lowercase e 101 0145 0x65 0110 0101f Letter lowercase f 102 0146 0x66 0110 0110


Character Description Decimal Octal Hex Binaryg Letter lowercase g 103 0147 0x67 0110 0111h Letter lowercase h 104 0150 0x68 0110 1000i Letter lowercase i 105 0151 0x69 0110 1001j Letter lowercase j 106 0152 0x6A 0110 1010k Letter lowercase k 107 0153 0x6B 0110 10111 Letter lowercase l 108 0154 0x6C 0110 1100m Letter lowercase m 109 0155 0x6D 0110 1101n Letter lowercase n 110 0156 0x6 0110 1110o Letter lowercase o 111 0157 0x6F 0110 1111P Letter lowercase p 112 0160 0x70 0111 0000q Letter lowercase q 113 0161 0x71 0111 0001r Letter lowercase r 114 0162 0x72 0111 0010s Letter lowercase s 115 0163 0x73 0111 0011t Letter lowercase t 116 0164 0x74 0111 0100u Letter lowercase u 117 0165 0x75 0111 0101V Letter lowercase v 118 0166 0x76 0111 0110w Letter lowercase w 119 0167 0x77 0111 0111X Letter lowercase x 120 0170 0x7 8 0111 1000y Letter lowercase y 121 0171 0x79 0111 1001z Letter lowercase z 122 0172 0x7a 0111 1010{ Left brace 123 0173 0x7b 0111 1011| Pipe 124 0174 0x7c 0111 1100} Right brace 125 0175 0x7d 0111 1101~ Tilde 126 0176 0x7e 0111 1110Delete Delete, rub out 127 0177 0x7f 0111 1111

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!