summaryrefslogtreecommitdiff
path: root/reference/CPLUSPLUS/SYNTAX/const.html
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2008-01-27 11:37:44 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2008-01-27 11:37:44 +0100
commit7e0f021a9aec35fd8e6725e87e3313b101d26f5e (patch)
treeb1cacc4b24393f517aeb4610e9e1021f954307a8 /reference/CPLUSPLUS/SYNTAX/const.html
Initial import (2.0.2-6)2.0.2-6
Diffstat (limited to 'reference/CPLUSPLUS/SYNTAX/const.html')
-rw-r--r--reference/CPLUSPLUS/SYNTAX/const.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/reference/CPLUSPLUS/SYNTAX/const.html b/reference/CPLUSPLUS/SYNTAX/const.html
new file mode 100644
index 0000000..8c28d35
--- /dev/null
+++ b/reference/CPLUSPLUS/SYNTAX/const.html
@@ -0,0 +1,44 @@
+<title>const keyword</title>
+
+<head>
+<script language="JavaScript" src="../../JAVASCRIPT/standard.js">
+</script>
+</head>
+
+<body bgcolor="#dddddd">
+<font color=brown>
+<hr>
+<center><h1>const keyword</h1></center>
+<hr>
+<p>
+In the C++ world, the use of <b>const</b> is considered to be an
+improvement over <a href=../../C/SYNTAX/preprocessors.html>#define</a>
+in general the usual
+<a href="../../C/SYNTAX/const.html">C programming rules</a> apply.
+There is one exception within a class, this is because the class syntax
+does not allow the assignment of a variable when it is declared. The result
+is a rather strange looking syntax. Please see the example below.
+<p>
+
+<hr>
+<h2>Examples:</h2>
+<img src="../../GRAPHICS/computer.gif" alt="o">
+<a href="../EXAMPLES/const1.cc">Example program.</a>
+<hr>
+<h2>See Also:</h2>
+<hr>
+
+</font>
+<font color=black>
+<h2>C References</h2>
+<img src="../../GRAPHICS/whiteball.gif" alt="o">
+<a href="../../C/SYNTAX/const.html">C version of const.</a>
+<br>
+<img src="../../GRAPHICS/whiteball.gif" alt="o">
+<a href="../../C/CONCEPT/constants.html">Theory of constants.</a>
+<p>
+
+<script>
+tail("27-Sep-98");
+</script>
+