Decimal 13, hex is D, 015 is octal
2007-03-14 22:09:06
·
answer #1
·
answered by Anonymous
·
0⤊
0⤋
Ever see a typewritter? As someone typed letters on the paper the carriage(holds the paper on a roller) would move to the left one position. As the end of the line approached you would have to manually return to the start of a new line on the left side of the paper by pulling on a lever and moving the carriage back to the left side of the paper.
This was called a carriage return and line feed (CrLf). On a PC this lever was replaced by the ENTER button.
ASCII was developed for use with teletypes, basically automated typewritters. So the ASCII command set has non printing codes to control a teletype. Many codes are no longer used but many still are. The computer uses the combined CR and LF ASCII codes on an enter button.
It is the only button to my knowledge on a key board that when pressed actually sends two character codes. CrLf
These are used so frequently the VB has copied them as constants for use in If statements
vbCr , vbLf & vbCrLf
EDIT:
for some fun try changing the keypress character to BELL
2007-03-15 02:06:46
·
answer #2
·
answered by MarkG 7
·
0⤊
0⤋
The enter key does not have an ASCII code.
This goes for all action keys like Insert, Delete, Function keys and arrow keys.
ASCII is the translation of printable keys into binary numbers.
There is an ASCII code for carriage return(13) and line feed(10).
Your programming language may have special function for detecting action keys.
2007-03-14 22:12:32
·
answer #3
·
answered by AnalProgrammer 7
·
0⤊
1⤋
has ASCII combination of 0x0D and 0x0A.
0x0D is simply to breaking a line,
and 0x0A is simply to move the caret to the front of line.
so when we use 0x0d with 0x0a then it's said the true-Enter...
hope some helps for you...
2007-03-14 22:08:45
·
answer #4
·
answered by QuizBox 2
·
1⤊
0⤋
www.asciitable.com
2007-03-15 01:19:35
·
answer #5
·
answered by Anonymous
·
0⤊
0⤋
char c='^M';
printf("%d",c);
2007-03-14 22:02:30
·
answer #6
·
answered by Anonymous
·
0⤊
0⤋