Puoi sovraccaricare l'operatore >> per accettare la tua classe. Comunque esiste già la classe std::complex<> che fa quello che ti serve.
http://www.cplusplus.com/reference/std/complex/complex/
Puoi sovraccaricare l'operatore >> per accettare la tua classe. Comunque esiste già la classe std::complex<> che fa quello che ti serve.
http://www.cplusplus.com/reference/std/complex/complex/
This code and information is provided "as is" without warranty of any kind, either expressed
or implied, including but not limited to the implied warranties of merchantability and/or
fitness for a particular purpose.