请各位帮忙看看我这个IO哪错了,就没输出呢?
#include<iostream>
#include<stdio.h>
using namespace std;
class IO
{
template<class T>
inline void read(T* tmp)
{
T n=0;
bool f=0;
char c;
for(c=getchar();c<'0'||c>'9';c=getchar())
if(c=='-') f=1;
for(;c>='0'&&c<='9';c=getchar())
n=(n<<1)+(n<<3)+(c^48);
*tmp=(f?-n:n);
}
template<class T>
inline void write(T x)
{
if(x<0) x=-x,putchar('-');
if(x>9) write(x/10);
putchar((x%10)+'0');
}
public:
int in,out;
template<class T>
void operator>>(T &tmp)
{
read(&tmp);
}
template<class T>
void operator<<(T tmp)
{
write(tmp);
}
};
int main(int argc, char **argv,char **envp)
{
IO in_out;
int t;
in_out.in>>t;
in_out.out<<t;
return 0;
}