Questions tagged [stdcomplex]

std::complex<T> is a class template which most notably supports:

It is a type with value semantics, meaning that copying it and passing std::complex<T> between functions behaves identically to fundamental types like float.

1 questions
1
vote
2 answers

How can I store an array of complex numbers?

I want to write code that takes a sequence of complex numbers and searches for a number in it. But I don't know how to write a function to form the sequence. This is what I've tried so far: class complex { private: int real; int image; …
sogcheh
  • 21
  • 2