// aa.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
class Fun
{
public:
Fun()
{
buf = new char[10];
}
Fun(Fun & a)
{
int i=0;
}
~Fun()
{
if(buf)
delete []buf;
}
Fun operator = (Fun c)
{
*this = c;
return *this;
}
Fun &operator >> (int b)
{
return * this;
}
Fun & operator << (int c)
{
return * this;
}
char * buf;
};
Fun Get()
{
Fun c;
return c;
}
Fun & Get2()
{
Fun c;
return c;
}
int _tmain(int argc, _TCHAR* argv[])
{
// Fun a;
//Fun b(a);
Fun d = Get();
Fun e = Get2();
d>>12;
d<<13;
return 0;
}