problem with 'ostream'

Hello everyone,
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() << ')' ;
return sortie;
}

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
Change ostream to std::ostream. Makes sure the <iostream> header is included.
Thank u soo much, it worked.
Topic archived. No new replies allowed.