fork download
  1. #include <iostream>
  2.  
  3. class sidbj
  4. {
  5. public:
  6. operator std::string()
  7. {
  8. return "ssads";
  9. }
  10. };
  11.  
  12.  
  13. int main()
  14. {
  15. sidbj tf7vhjb;
  16. std::string s = tf7vhjb;
  17. std::cout << s;
  18. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
ssads