gave you the answer. Note that he moved the declaration for operator >> inside the declaration of your class.
PLEASE ALWAYS USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
Hint: You can edit your post, highlight your code and press the <> formatting button.
You have several other errors in your code.
L4: Your class is called Polynomial. L8: Your constructor is Poly. They must match.
L10: Missing a ;
L9,14: (void) is a C-ism that is not needed in C++.
L16: x is not used.
L24-35: You can't define functions within a function.
L7,27,32-34: Your declaration is ord. You use order. They must match.
L27,33: c is undefined. Did you mean coef?