fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Circle{
  5. public:
  6. Circle(){ cout<<"im a circle\n"; }
  7. void operator+(){ cout<<"im a + operator\n"; }
  8. };
  9.  
  10. int main()
  11. {
  12. Circle a;
  13. Circle b;
  14. +a;
  15. Circle c;
  16. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
im a circle
im a circle
im a + operator
im a circle