error: ‘ostream’ does not name a type
Use std::ostream
and std::istream
everywhere.
ostream
and istream
are in namespace std
Us qualified names for types defined in namespace std
friend std::ostream& operator<<(std::ostream& out,const Complex& c);
It would be also better to include <iostream>
instead of two separate headers <istream>
and <ostream>