C:/Musimathics_local/Musimat/MusimatTutorial/B0128.cpp

Go to the documentation of this file.
00001 #include "MusimatTutorial.h"
00002 MusimatTutorialSection(B0128) {
00003 Print("*** B.1.28 Comments ***");
00004 /*****************************************************************************
00005 
00006 B.1.28 Comments
00007 
00008 It is always helpful to readers if programmers insert comments into their programs. In Musimat, 
00009 any text beginning with two slashes // out to the end of the line is commentary. For example:
00010 *****************************************************************************/
00011 Real a = 1, b = 2;
00012 
00013 Real x = a + b; // this text is commentary
00014 
00015 /*****************************************************************************
00016 Sometimes it’s useful to be able to put a comment anywhere, even in the middle of an expres-
00017 sion. All commentary between these delimiters is ignored.
00018 *****************************************************************************/
00019 
00020 x = a /* this commentary is ignored by musimat */ + b;
00021 
00022 /*****************************************************************************
00023 When the expression is evaluated, all commentary is ignored, so the resulting expression is x = 
00024 a + b;. Commentary between comment delimeters can extend over multiple lines of text, as necessary.
00025 
00026 *****************************************************************************/
00027 }}
00028 
00030 /* $Revision: 1.4 $ $Date: 2006/09/12 17:38:01 $ $Author: dgl $ $Name:  $ $Id: _b0128_8cpp-source.html,v 1.4 2006/09/12 17:38:01 dgl Exp $ */
00031 // The Musimat Tutorial © 2006 Gareth Loy
00032 // Derived from Chapter 9 and Appendix B of "Musimathics Vol. 1" © 2006 Gareth Loy 
00033 // and published exclusively by The MIT Press.
00034 // This program is released WITHOUT ANY WARRANTY; without even the implied 
00035 // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
00036 // For information on usage and redistribution, and for a DISCLAIMER OF ALL
00037 // WARRANTIES, see the file, "LICENSE.txt," in this distribution.
00038 // "Musimathics" is available here:     http://mitpress.mit.edu/catalog/item/default.asp?ttype=2&tid=10916
00039 // Gareth Loy's Musimathics website:    http://www.musimathics.com/
00040 // The Musimat website:                 http://www.musimat.com/
00041 // This program is released under the terms of the GNU General Public License
00042 // available here:                      http://www.gnu.org/licenses/gpl.txt
00043 

Generated on Tue Sep 12 10:14:24 2006 for Musimat Tutorial by  doxygen 1.4.7