Saturday, October 30, 2010

USER DEFINED CONVERSIONS


User-defined conversions allow you to specify object conversions with constructors or with conversion functions. User-defined conversions are implicitly used in addition to standard conversions for conversion of initializers, functions arguments, function return values, expression operands, expressions controlling iteration, selection statements, and explicit type conversions.

There are two types of user-defined conversions:

  • Conversion by constructor
  • Conversion functions
The compiler can use only one user-defined conversion (either a conversion constructor or a conversion function)
when implicitly converting a single value. ----------------------------------------------------------------------------------------------

A C++ PROGRAM TO IMPLEMENT USER DEFINED CONVERSIONS

COMPILER EMPLOYED: DEV C++ COMPILER-4.9.9.2

SOURCE FILE SIZE :1kb

EXE FILE SIZE :574 kb

NOTE: PLEASE INCLUDE THE DESIRED HEADER FILE

---------------------------------------------------------------------------------------------

C++ PROGRAM SOURCE & EXE DOWNLOAD:

Click download button to download

DISCLAIMER: The following program cannot be ensured of perfection.so any flaws in the program can be notified in the comments section.


----------------------------------------------------------------------------------------------
Your's friendly,

[MOHANRAM.G],
ADMIN...

0 comments:

Post a Comment