diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2008-01-27 11:37:44 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2008-01-27 11:37:44 +0100 |
commit | 7e0f021a9aec35fd8e6725e87e3313b101d26f5e (patch) | |
tree | b1cacc4b24393f517aeb4610e9e1021f954307a8 /reference/CPLUSPLUS/SYNTAX/comment.html |
Initial import (2.0.2-6)2.0.2-6
Diffstat (limited to 'reference/CPLUSPLUS/SYNTAX/comment.html')
-rw-r--r-- | reference/CPLUSPLUS/SYNTAX/comment.html | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/reference/CPLUSPLUS/SYNTAX/comment.html b/reference/CPLUSPLUS/SYNTAX/comment.html new file mode 100644 index 0000000..b085c90 --- /dev/null +++ b/reference/CPLUSPLUS/SYNTAX/comment.html @@ -0,0 +1,73 @@ +<head> +<title>C++ Comments.</title> +</head> +<body bgcolor=#dddddd> +<font color=brown> +<hr> +<center> +<h1>C++ Comments.</h1> +</center> +<hr> +<p> +C++ allows <b>//</b> as an inline comment, it can be used on any line and is +delimited by the newline character (return). +<p> +<center> +<table border=2 width="80%" bgcolor="ivory"> +<tr> +<td> +<pre> + + main() + { + int Counter = 0; // Initalise Counter. + + /* Start the main processing here. */ + } + +</pre> +</td> +</tr> +</table> +</center> +<p> +A handy feature of the new comments is the ability to nest them within the +old style comments. +<p> +This provides a handy debugging tool. If you write your normal comments +using the <b>//</b> syntax, you can then comment out blocks of code while +debugging with <b> /* */</b> + +</font> +<font color=black> +<hr> +<h2>C comments</h3> +<img src="../../GRAPHICS/whiteball.gif"> +<a href="../../C/SYNTAX/comments.html">/* ... */ comments</a> +<p> + +<hr> +<p> +<center> +<table border=2 width="80%" bgcolor="ivory"> +<tr align=center> +<td width="25%"> +<a href="../cref.html">Top</a> +</td><td width="25%"> +<a href="../../C/master_index.html">Master Index</a> +</td><td width="25%"> +<a href="keywords.html">C++ Keywords</a> +</td><td width="25%"> +<a href="../../C/FUNCTIONS/funcref.htm">Functions</a> +</td> +</tr> +</table> +</center> +<p> + + +<hr> +<font color=brown> +<address>Martin Leslie +30-Jan-96</address> +</font> |