#include "MusimatTutorial.h"
Go to the source code of this file.
Functions | |
MusimatTutorialSection (B0128) |
MusimatTutorialSection | ( | B0128 | ) |
Definition at line 2 of file B0128.cpp.
References x.
{ Print("*** B.1.28 Comments ***"); /***************************************************************************** B.1.28 Comments We've already been using comments, but here's a little more about them. It is always helpful to readers if programmers insert comments into their programs. In Musimat, any text beginning with two slashes // out to the end of the line is commentary. For example: *****************************************************************************/ Real a = 1, b = 2; Real x = a + b; // this text is commentary /***************************************************************************** Sometimes it's useful to be able to put a comment anywhere, even in the middle of an expres- sion. All commentary between these delimiters is ignored. *****************************************************************************/ x = a /* this commentary is ignored by musimat */ + b; /***************************************************************************** When the expression is evaluated, all commentary is ignored, so the resulting expression is x = a + b;. Commentary between comment delimeters can extend over multiple lines of text, as necessary. *****************************************************************************/ }