int, unsigned, float, double
:
int a=3; double b(a), c(1.2);
For complex numbers, we use those implemented in the standard library:
#include <complex>
Here is an example of construction of a complex number with double
number type.
std::complex<double> z(1.0,2.0);