fork download
  1. #include <iostream>
  2.  
  3. class hugeint
  4. {
  5. public:
  6. int size;
  7. int number[100];
  8.  
  9.  
  10. friend std::istream& operator>>(std::istream&, hugeint&);
  11. friend std::ostream& operator<<(std::ostream&, hugeint&);
  12. };
  13.  
  14.  
  15. std::istream& operator>>(std::istream& in, hugeint& c)
  16. {
  17. // code not shown
  18. return in;
  19. }
  20.  
  21.  
  22. std::ostream& operator<<(std::ostream& out, hugeint& c)
  23. {
  24. return out;
  25. }
  26.  
  27.  
  28. int main()
  29. {
  30. hugeint o, y, z;
  31.  
  32. std::cin >> o;
  33. std::cout << "now y " << std::endl;
  34. std::cin >> y;
  35. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
now y