PDA

View Full Version : Complex number



nbo10
3rd April 2009, 22:50
Hi all,
I'm transferring a c++ console application I have to a gui with graphs.

How do I complex numbers? In my c++ program I had #include<complex> and I could define complex<double> cnumber; But I can't seem to do that in Qt. Thanks

ahhh.. I forgot using namespace std;

faldzip
4th April 2009, 07:44
My guess would be to use std::complex as it's standard C++, which you are using to write applications with Qt.