Daniel Duffy
C++ author, trainer
- Joined
- 10/4/07
- Messages
- 10,335
- Points
- 648
Visual Studio 2022 does not suppport Gaussian integers.
... not end of world, stilll, error messages are scary for some.
Gaussian integer - Wikipedia
Code: Select all
// Not on VS2022
// std::complex<int> com(1, 1);
// std::complex<int> com2(1.0, 1);
// std::complex<float> com3(1.0, 1);
std::complex<float> com3(1.0, 2.0);
... not end of world, stilll, error messages are scary for some.
Gaussian integer - Wikipedia
Code: Select all
// Not on VS2022
// std::complex<int> com(1, 1);
// std::complex<int> com2(1.0, 1);
// std::complex<float> com3(1.0, 1);
std::complex<float> com3(1.0, 2.0);