out_complex

 

Description

outputs a complex value

Syntax

int out_complex( LPCSTR lpcstr, complex z )

Parameters

lpcstr
a pointer to a string which will proceed the value.
z
the complex value to be output.

Return

number of characters that are output.

Examples

EX1

void out_complex_ex1()
{
    complex cc(4.5, 7.8);
    
    out_complex("The value = ", cc); 
// output string is "The value = 4.500000+7.800000i"
}

Remark

See Also

header to Include

origin.h

Reference