2,617
次編輯
Tankianting(討論 | 貢獻) |
Tankianting(討論 | 貢獻) |
||
行 1: | 行 1: | ||
{{Nav|程式語言、邏輯學}} | {{Nav|程式語言、邏輯學}} | ||
==coding:style== | |||
Type Felix struct{ | |||
Str name, | |||
Int age}; | |||
Int a = 2 + 2; | |||
(Int Int -> Int) add = lmd(x, y) { | |||
if (x == 0){ | |||
return y; | |||
}else{ | |||
return x + y; | |||
} | |||
}; | |||
bool a = (20 == (lmd(int x, int y){return x * y;}(12, 6)) + 2); | |||
Felix (Str name, Int age) | |||
Int a = 2 + 2; | |||
add = l int x ,int y | |||
==迴圈== | ==迴圈== |