The greater than > operator not defined in basic_istream?

I have a code that is perfectly innocent with a line that says:
if (in > 34.77-(2.6312)) && (in < 34.77+(2.6312)) in >> x;
But when the cint got to that line it tells me that the > operator is not defined in basic_istream
I included :
#include “Riostream.h”
#include ;
#include ;
on the top of my program.

Do i need to include some other library?
Thanks in advance.

while (1) {
if (in > 34.77-(2.6312)) && (in < 34.77+(2.6312)) in >> x;
if (!in.good()) break;
if (nlines < 57) cout<<x<<endl;
// cout<<“Points Removed”;
// if (x>34.77-2.6312) && (x<34.77+2.6312)
// x >>a;
// else cout<<x;
h1->Fill(x);
nlines++;
}

The greater than > operator not defined in basic_istream?

No.

Maybe post a more complete example that shows where you are defining the stream ‘in’ ?

It looks like maybe what you want to do is have a condition on the contents of ‘in’, but you are actually trying to compare the object ‘in’ itself to a decimal value. In this case unless ‘in’ is a pointer address this may not end up doing what you want it to…