Question #327529

How to convert basic data to user defined data type?


Expert's answer

To convert basic data to user-defined data type one should use a constructor which obtained a single parameter of that basic data type.


For example constructor Int::Int(int i) will convert integer into user-defied type Int.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS