推荐理由:《Basic》是一款适用于苹果系统的音乐类软件APP。BASIC:昔日编写程序时的美好时光!美妙的感觉!《Basic》大小875.13 K,在本站深受5620位玩家喜爱和下载。要找等,赶紧下载到手机吧。
INPUT
B = SIN(A)
PRINT
ANSWER: , B
END
I think everybody in this country should learn how to program a computer, should learn a computer language. Because it teaches you how to think, it's like going to a law school. I don't think anybody should be a lawyer, but I think going to a law school actually be useful, 'cause it taches you how to think.
乔布斯
BASIC
用户指南:
PRINT
PRINT HELLO
WORLD !
END
INPUT
INPUT
“A=”, A
PRINT
END
IF...THEN...
数值比较:
INPUT
A>⑨⓪
THEN
B=“A”
PRINT
END
运算符:
大于或等于
等于或大于
小于或等于
等于或小于
不等于
不等于
THEN 后面可以有
GOTO, GOSUB, INPUT, PRINT.
字符串比较:
INPUT A
IF A=“TOM” THEN PRINT “BOY”
END
运算符:
is not
is not
FOR...NEXT...
FOR
I=①
STEP
PRINT
“HELLO”, I
NEXT
④⓪ END
STEP: 步进。默认为①。
FOR...NEXT... 可以嵌套.
FOR
I=①
FOR
J=①
PRINT
I, J
NEXT
NEXT
⑥⓪ END
GOTO
...
...
...
GOTO
...
GOSUB
PRINT
“H”
GOSUB
①⓪⓪
PRINT
“L”
END
①⓪⓪
PRINT
“A”
①①⓪ RETURN
SOUND
SOUND
C, M, ⓪.⑤
播放钢琴C调 do,⓪.⑤秒钟。
音调: C, C#, D, D#, E, F, F#, G, G#, A, A#, B
音阶: L (low), M (middle), H (high)
C, D, E, F, G, A, B 也可以表示成简谱形式: ①, ②, ③, ④, ⑤, ⑥, ⑦. (C# 为 ①#).
TEXT
TEXT
“HELLO”, x, y, size
(x,y):
字符串 “HELLO” 的坐标。
CIRCLE
CIRCLE
radius
(x,y): 圆心坐标。
RECTANGLE
RECT
width,
height
(x,y): 矩形左上角坐标。
LINE
LINE
x①,
y①,
x②,
(x①,y①): 起点坐标。
(x②,y②): 终点坐标。
POINT
POINT
x, y
(x,y): 点坐标。
CLR:
清图形屏
CLS:
清编辑屏.
DELAY
DELAY
⓪.⑤
⓪.⑤:延时⓪.⑤秒。
CURVE
CURVE
radius,
⓪: 起始角。
PI: 终位角。
以圆心(x,y)顺时针画出曲线。
数学方程:
SIN(X), COS(X), TAN(X), COT(X),
ASIN(X), ACOS(X), ATAN(X),
SINH(X), COSH(X), TANH(X),
ASINH(X), ACOSH(X), ATANH(X).
SQR(X): square root of x.
ABS(X): absolute value of x.
FCT(X): x factorial.
LOG(X): natural logarithm of x.
LOG①⓪(X): base-①⓪ logarithm of x.
LOG②(X) :base-② logarithm of x.
EXP(X): base-e exponential of x.
ERF(X): the error function of x.
ERFC(X): the complementary error function of x.
ROUND(X) :integral nearest to x.
CEIL(X): the smallest integral that is not less than x.
FLOOR(X): the largest integral that is not greater than x.
TGAMMA(X): the gamma function of x.
LGAMMA(X): the natural logarithm of the absolute value of the gamma function of x.
固有变量:
INKEY :
once a key is pressed, the value of INKEY changes.
RND
a random number.
一些技巧:
①. Undo & Redo typing on iPhone with a shake.
②. Copy an Emoji or some character from other places (like Notes), then paste them on the edit window.
③. Exponentiation is expressed as X^Y.