template <class X, class XCharType, class XTraits>
basic_ostream<XCharType, XTraits>& operator<<(basic_ostream<XCharType, XTraits>& qrOutStream,
const complex<X>& kqrZ);#include <complex>
#include <complex>
#include <iostream>
int main()
{
using namespace std;
// Create a complex number and output it
complex<double> qZ(2.0, 4.0);
cout << "Complex Number : "<< qZ << endl;
// Keep the window open
cin.get();
return 0;
}
© 20072025 XoaX.net LLC. All rights reserved.