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/const.html | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 reference/CPLUSPLUS/SYNTAX/const.html (limited to 'reference/CPLUSPLUS/SYNTAX/const.html') 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 @@ +const keyword + + + + + + + +
+

const keyword

+
+

+In the C++ world, the use of const is considered to be an +improvement over #define +in general the usual +C programming rules 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. +

+ +


+

Examples:

+o +Example program. +
+

See Also:

+
+ +
+ +

C References

+o +C version of const. +
+o +Theory of constants. +

+ + + -- cgit v1.2.3-54-g00ecf