Possible Duplicate:
overload operator<< within a class in c++
Operator overloading
Is there any way this is possible?
#include <iostream>
using namespace std;
struct test{
  int n;
};
int main(){
  test t1;
  cin >> t1;
  return 0;
}
For all I know, it is not possible, but I had an exam yesterday and that question came in it, it asked me to write the functions missing.
 
     
     
    