From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/CPLUSPLUS/SYNTAX/comment.html | 73 +++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 reference/CPLUSPLUS/SYNTAX/comment.html (limited to 'reference/CPLUSPLUS/SYNTAX/comment.html') 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 @@ + +C++ Comments. + + + +
+
+

C++ Comments.

+
+
+

+C++ allows // as an inline comment, it can be used on any line and is +delimited by the newline character (return). +

+

+ + + + +
+
+
+  main()
+  {
+      int Counter = 0;       // Initalise Counter.
+
+      /* Start the main processing here. */
+  }
+
+
+
+
+

+A handy feature of the new comments is the ability to nest them within the +old style comments. +

+This provides a handy debugging tool. If you write your normal comments +using the // syntax, you can then comment out blocks of code while +debugging with /* */ + + + +


+

C comments

+ +/* ... */ comments +

+ +


+

+

+ + + + +
+Top + +Master Index + +C++ Keywords + +Functions +
+
+

+ + +


+ +
Martin Leslie +30-Jan-96
+
-- cgit v1.2.3-54-g00ecf