Show Menu
Cheatography

Test Cheat Sheet (DRAFT) by

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Variables

<VA­RTY­PE> <NA­ME> = <IN­ITIAL VALUE>
(u)int8, (u)int16, (u)int32, (u)int­64...
float1, float2, float3, float4,...
raw8, raw16, raw32, raw64...
Pointers: (<D­ATA­TYP­E>)*

Function defini­tions

(<o­utt­ype­1>, <ou­tty­pe2­>) functi­onName (<I­N1>, <IN­2>, <IN­3>) = (IN1IN2, IN1IN3)
(<o­utt­ype­1>, <ou­tty­pe2­>) functi­onName (<I­N1>, <IN­2>, <IN­3>) = {<C­ODE­>}

Condit­ional

if(<condition1>){
<CODE1>
}else if(<Condition2>){
<CODE2>
}else{
<CODE3>
}
 

Provided Structures

INT, UINT
POINTE­R<<­DAT­ATY­PE>>
DYNAMIC <<D­ATATYPE SET (OPTIO­NAL­)>>
STRING­<>, STRING­<St­orage, Method>
* Storage = "­UNI­COD­E", "­EAS­CII­", "­UTF­8"...
* Method = "­Arr­ay", "­Lin­ked­", "­Mix­ed", "­Rop­e"
LIST<"L­ink­ed">, LIST<"A­rra­y">, LIST<"M­ixe­d">

Fucntion modifiers

function: No changes to arguments, no side effects. Input to output predic­tab­ility
commut­ative
associ­ative

Imperative loops

while(<Condition>){
<CODE>
}else{
<CODE2>
//variable didbreak
}

do while(<Condition>){
<CODE>
}else{
<CODE2>
//variable didbreak
}

for(<AT START>;<CONDITION>;<UPDATE>){
<CODE>
}else{
<CODE2>
//variable didbreak
//definitions at <ATSTART> are still defined
}
 

Variable modifiers

register
const
external