i'm trying to overload operator<< for a class Complexe
so i tried this;
ostream& operator<<(ostream& sortie, Complexe const& z)
sortie << '(' << z.X() << ", " << z.Y() << ')' ;
But it didn't work with me (i use Code::Blocks as IDE), and i have the following error;
error: 'ostream' does not name a type
Thank u for help
std::ostream. Makes sure the <iostream> header is included.
Thank u soo much, it worked.