Home

Submit

Source

Feeds

Home » C and C++ » Miscellaneous ::

C and C++ Miscellaneous
The new C++ standard is full of powerful additions to the language: templates, run-time type identification (RTTI), namespaces, and exceptions to name a few. This tutorial discusses one of the minor extensions: the new C++ casting operators.
Related Tutorials
C and C++ Getting Started
C++ Support for Code Writing
C and C++ / Getting Started
We have been introduced to declaring variables using specific data types. After declaring a value and initializing it, you may want the value to change type without redefining it. This is required in some cases where you already have a value, probably produced by one variable, while another variable declared with a different data type. This means that you would need to convert a value from one type into another type. For example, you may have declared a variable using a double data type but you need the value of that variable to be used as an int. Transferring a value from one type to another is referred to as casting.

Site: www.functionx.com Report - View Tutorial

 
Site Search

 
Categories
2D Graphics 3D Graphics Office Applications Databases Desktop Programming Web Development
 
Advertisement