Texas Instruments TI-Nspire CX CAS TINSPIRE-CX-CAS Merkblatt

Produktcode
TINSPIRE-CX-CAS
Seite von 603
512 Getting Started with the Program Editor
Inserting Comments
A comment symbol (©) lets you enter a remark. Comments can be useful to
someone viewing or editing the program. Comments are not displayed when
the program runs, and they have no effect on program flow.
Define LibPub volcyl(ht,r) =
Prgm
©volcyl(ht,r) => volume of cylinder  
À
  Disp “Volume =”, approx(p ¦ r
2
¦ ht)
©This is another comment.
EndPrgm
À
Comment showing required syntax. Because this library object is public
and this comment is the first line in a Func or Prgm block, the comment is
displayed in the Catalog as help. For more information, see
Libraries.
To insert a comment:
1.
Position the cursor at the end of the line in which you want to insert a
comment.
2.
From the
Actions
menu, click
Insert Comment
.
3.
Type the text of the comment after the © symbol.
Checking Syntax
The Program Editor lets you check the function or program for correct syntax.
From the
Check Syntax & Store
menu, click
Check Syntax
.
If the syntax checker finds any syntax errors, it displays an error message
and tries to position the cursor near the first error so you can correct it.