S
sean worlock
I have written a simple class that modals the action of a complex number.
This class is called CComplex.
I wish to make my class as versatile as possable.
Thus lets say I have some variables defined as following:
int value1;
double value2;
float value3;
and three Complex objects defined as:
CComplex ONE,TWO,THREE;
I wish to perform the following...
ONE=(CComplex) value1;
TWO=(CComplex) value2;
THREE=(CComplex) value3;
thus I need to create a type operator for my CComplex class.
I have read many texts for the conversion of my class into other types but
not the other way.
could anybody point me in the correct direction for the prototype and
function syntax to complete this?
This class is called CComplex.
I wish to make my class as versatile as possable.
Thus lets say I have some variables defined as following:
int value1;
double value2;
float value3;
and three Complex objects defined as:
CComplex ONE,TWO,THREE;
I wish to perform the following...
ONE=(CComplex) value1;
TWO=(CComplex) value2;
THREE=(CComplex) value3;
thus I need to create a type operator for my CComplex class.
I have read many texts for the conversion of my class into other types but
not the other way.
could anybody point me in the correct direction for the prototype and
function syntax to complete this?