fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class CS {
  5. public:
  6. CS& operator<<(int be) { cout << "+" << be << endl; return *this; }
  7. };
  8.  
  9. int main(int, char**)
  10. {
  11. CS cs;
  12. cs << 2 << 3;
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
+2
+3