Processing, -- (decrement)
用法介紹。
用法
var--
參數
var
int
說明
將整數變量的值減去 1。等效於操作 i = i - 1
。如果變量 i
的值為 5,則表達式 i--
將 i
的值減小為 4。
例子
int a = 5; // Sets 'a' to 5
int b = a--; // Sets 'b' to 5, then decrements 'a' to 4
int c = a; // Sets 'c' to 4
相關用法
- Processing -= (subtract assign)用法及代碼示例
- Processing - (minus)用法及代碼示例
- Processing FFT用法及代碼示例
- Processing SawOsc.pan()用法及代碼示例
- Processing FloatDict用法及代碼示例
- Processing FFT.stop()用法及代碼示例
- Processing join()用法及代碼示例
- Processing () (parentheses)用法及代碼示例
- Processing Pulse用法及代碼示例
- Processing PShader用法及代碼示例
- Processing PVector.set()用法及代碼示例
- Processing FloatDict.sortKeysReverse()用法及代碼示例
- Processing texture()用法及代碼示例
- Processing IntDict.add()用法及代碼示例
- Processing PShape.enableStyle()用法及代碼示例
- Processing FloatDict.sub()用法及代碼示例
- Processing String用法及代碼示例
- Processing PImage.pixels[]用法及代碼示例
- Processing vertex()用法及代碼示例
- Processing PVector.mag()用法及代碼示例
- Processing thread()用法及代碼示例
- Processing Capture.stop()用法及代碼示例
- Processing Env.play()用法及代碼示例
- Processing StringList用法及代碼示例
- Processing parseJSONArray()用法及代碼示例
注:本文由純淨天空篩選整理自processing.org大神的英文原創作品 -- (decrement)。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。