summaryrefslogtreecommitdiff
path: root/reference/CPLUSPLUS/CONCEPT/cast.html
diff options
context:
space:
mode:
Diffstat (limited to 'reference/CPLUSPLUS/CONCEPT/cast.html')
-rw-r--r--reference/CPLUSPLUS/CONCEPT/cast.html89
1 files changed, 89 insertions, 0 deletions
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 @@
+<html>
+<head>
+<title>C++ casting</title>
+</head>
+<body bgcolor="#dddddd">
+<font color=brown>
+<hr>
+<center><h1>C++ casting.</h1></center>
+<hr>
+<p>
+
+C++ has added a new feature to
+<A HREF="../../C/CONCEPT/cast.html">cast</a>
+that allows you to cast variables by using a slightly
+more familuar syntax. Have a look at the example below.
+
+<p>
+<center>
+<table border=1 width="80%" bgcolor="ivory">
+<tr>
+<td>
+<pre>
+
+ main()
+ {
+ int var1;
+ float var2;
+
+ var2 = float(var1);
+ }
+</pre>
+</td>
+</tr>
+</table>
+</center>
+<p>
+The example shows that casting can now look like a function call.
+<p>
+<hr>
+<h2>Examples:</h2>
+
+<font color=brown>
+<img src="../../GRAPHICS/computer.gif" alt="o">
+<a href="../../CPLUSPLUS/EXAMPLES/cast.cc">C++ Example program.</a>
+</font>
+
+<hr>
+<h2>See Also:</h2>
+
+</font>
+<hr>
+<font color=black>
+<h2>C References</h2>
+<p>
+<img src="../../GRAPHICS/whiteball.gif" alt="o">
+<a href="../../C/CONCEPT/cast.html">C casting</a>.
+
+</font>
+
+<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="../SYNTAX/keywords.html">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
+<script language="JavaScript">
+<!-- //
+document.write(document.lastModified);
+// -->
+</script>
+</address><p>
+</font>
+</body>
+</html>