Hi I am working with complex number and numeric computation a lot. I am new in C++. In Visual Studio 2015 the following code WORKS.
#include <complex>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
complex<double> a = 1.0 + 2i;
cout << a << endl;
system("pause");
}
However in Clion this gives me error like this
35: error: unable to find numeric literal operator 'operator""i' complex<double> a = 1.0 + 2i;
Please help me. Many Thanks!!!