View Single Post
  #8   Spotlight this post!  
Unread 21-02-2005, 20:24
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: Code runs only once, fails on reset

Quote:
Originally Posted by Fat Alex
So whats the difference between "\r" and "\n" ?
the difference is three!
well that is if you subtract them in the code.
Each character has a different value.
"\n" is equivilent to character 10. so if you were to do char a=10, it would be the same as char a='\n'
"\r" is equivilent to character 13. so if you were to do char a=13, it would be the same as char a='\r'
So the difference is 13 - 10, and you would get three.
\r (carriage return) means to go the beginning of the line, and \n (line feed) means to go to the next line.
__________________
- from B B frank