list of what all the punctuations do!
Page 1 of 1

Author:  ferretron5 [ Sun Jun 09, 2013 2:31 am ]
Post subject:  list of what all the punctuations do!

Hi, i'm trying to make a quick little guide for my fellow student engineers in our robotics class and i was wondering if anyone could provide or write down what are all the punctuations robotc uses and what do they do. It would also be awesome if you could also list the commands that would usually go with them. Thanks a bundle!!! :bigthumb:

Author:  mightor [ Sun Jun 09, 2013 2:56 am ]
Post subject:  Re: list of what all the punctuations do!

What do you mean by punctuations? This?
, is used to separate arguments: nxtSetPixel(xPos, yPos);
. is to denote a member of a struct: triangle.side
" is used to mark something as a literal string: string greeting = "hello";
; marks the end of an instruction
' is used for literal characters: char foo = 'c';
# is used for precompiler pragmas: #include "helperfile.h" (note, they do not have a ";" at the end of the line)
% calculates the modulo, or remainder of a division: 4 % 3 = 1
^ is exclusive or (XOR)
& is and (AND)
* is multiplication
( and ) are simple brackets for changing the order in which things are evaluated
- and + should be obvious
| is or (OR)
: and ? are used in conditional assignments (may be a bit too complex)
~ is binary inversion

There's quite a few more: check out for details :)

= Xander

Author:  Palione [ Sun Jun 23, 2013 5:37 pm ]
Post subject:  Re: list of what all the punctuations do!

Thanks Xander,

Your posts are always helpful.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group