Skip to content

Instantly share code, notes, and snippets.

@stpettersens
Created September 14, 2010 21:20
Show Gist options
  • Save stpettersens/579794 to your computer and use it in GitHub Desktop.
Save stpettersens/579794 to your computer and use it in GitHub Desktop.
// Begins a line comment
# as used in preprocessor definitions, e.g. #include <io>
() as used in function calls, function definitions, etc.
e.g.
int add(int num1, int num 2) {
return num 1 + num2;
}
{ } braces to enclose a block/function as seen above.
< less than and > greater than, used in numerical expressions
if(a > b) { ... }
<< >> Stream operators as in cin << and cout >> (stdout and stdin on the console respectively) e.g. cout >> "Hi there";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment