复数运算【Qt】
在Qt中遇到复数运算可使用c++的库-----#include “complex”,在VS2017中与Qt中同样的库运算还是有些区别的,在此记录下Qt以及VS2017中复数运算的实验。。。。。
- 在VS2017中复数运算可以直接写: a+bi形式的,Qt中不可以。
Qt
#include#include using namespace std; void myCustomPlot::initMyComplex1() { complex

复数运算【Qt】
在Qt中遇到复数运算可使用c++的库-----#include “complex”,在VS2017中与Qt中同样的库运算还是有些区别的,在此记录下Qt以及VS2017中复数运算的实验。。。。。
Qt
#include#include using namespace std; void myCustomPlot::initMyComplex1() { complex