I'm only a c programmer and have only had brushes with c++ and OO, so I came across this nice diagram in wikipedia which is generated from given c++ and would like to get it to compile.
However, it requires a complex class implementation, which I don't understand too well. I like to thing of a class merely as a set of structs with functions also included. That's my highly uninformed opinion.
But I don't want to discuss what a class is, merely how to get a complex number one into that program. I jogged off to the GNU GMP, even if it's overkill, I thought it would at least have what I'm looking for. I had trouble finding a complex class implementation in there, so I dropped it.
Can anybody set me on the right path here, sorry that I'm so hazy on the terminology.
May be I can just build the class myself ... there are examples I can follow .. but all I would do is generate the struct (two floats) and include the constructor and destructor ... and that's all?
Maybe some knows of a link to this problem? Cheers!