how to use std operators

Hello!
As the title says how do I use std operators?
I don't know if I'm doing something wrong or anything.
But All i did is go by logic since std is a namespace because I thought something like j>l without std is j std::operator> l.why does it say that I need a ) and why does it give a comilation error?
And a bonus if it's no problem can anyone appoint me to a guide on the difficulties without using namespace std?


Thank you in advance.
Never mind my mistake was not in this but in somewhere else
and not in the operator keyword

turns out switch statements can't take non-constants :D sorry.
and I was using it as normal at first but after the compilation error I though it would need std::operator(which it didn't )anyway no need answering this question.

Moral of the story switch statements need constants and if you don't know that you'll get confused. :D :).
Topic archived. No new replies allowed.