且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在同一行上显示变量和字符串(TI-Basic)

更新时间:2023-12-04 11:39:52

在ti-83的ti-basic中,加号(+)用于连接字符串.像这样:

In ti-basic for the ti-83 the plus (+) is used to concatenate strings. Like this:

Disp "foo"+" "+"bar"

将输出:

"foo bar"

您必须记住使用string()将数字转换为字符串:

You must remember to convert numbers to strings using string() though:

Disp "C=√("+string(c)+")"

将输出:

"C=√(34)"

Disp "C=√("+c+")"(没有string())会引发错误.

Disp "C=√("+c+")" (no string()) will throw an error.