Hi guys, I recently started programming in C++. I don't have much experience with desktop programming but have extensive experience (4 years +) of web languages (PHP etc.). Anyways that's beside the point.
Pretty much for my computer science class, we were told to develop a quadratic formula which would find the x-intercepts. The program works perfectly except when it comes to imaginary roots.
The variables roots_imaginary_1 & roots_imaginary are both string datatype while all other variables are float. The compiler gives me an error "invalid operands of types `const char[3]' and `float' to binary `operator<<".
Anyways I was wondering if someone can help me out with this. Thanks!
One more question L B. I am successfully able to convert the float to strings but for some reason, the compiler gives me an error about the operator +.