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/CONCEPT/cast.html | 89 +++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 reference/CPLUSPLUS/CONCEPT/cast.html (limited to 'reference/CPLUSPLUS/CONCEPT/cast.html') diff --git a/reference/CPLUSPLUS/CONCEPT/cast.html b/reference/CPLUSPLUS/CONCEPT/cast.html new file mode 100644 index 0000000..cc2df6e --- /dev/null +++ b/reference/CPLUSPLUS/CONCEPT/cast.html @@ -0,0 +1,89 @@ + + +C++ casting + + + +
+

C++ casting.

+
+

+ +C++ has added a new feature to +cast +that allows you to cast variables by using a slightly +more familuar syntax. Have a look at the example below. + +

+

+ + + + +
+
+        
+    main()
+    {
+        int var1;
+        float var2;
+
+        var2 = float(var1);
+    }
+
+
+
+

+The example shows that casting can now look like a function call. +

+


+

Examples:

+ + +o +C++ Example program. + + +
+

See Also:

+ +
+
+ +

C References

+

+o +C casting. + + + +


+

+

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

+


+ +
Martin Leslie + +

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