C++ complex numbers, what is the right format?
c++, number-formatting, numbers
Solution
// 1 + 2i
std::complex<double> c(1, 2);
Problem
I want to use C++ with complex numbers. Therefore I included `#include <complex>`. Now my question is: How do I declare a variable?(so what is the format called for let's say: `1 + i`?) Thanks in advance :-)