fork download
  1. #include <iostream>
  2.  
  3. struct System_
  4. {
  5. struct out_
  6. {
  7. template <typename T>
  8. void println(const T& var)
  9. {
  10. std::cout << var << '\n';
  11. }
  12. } out;
  13. } System;
  14.  
  15. int main()
  16. {
  17. System.out.println("Hello Java-in-C++ World!");
  18. }
  19.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
Hello Java-in-C++ World!