fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. extern "C++" {
  5. void test() {
  6. cout << "hello C++" << endl;
  7. }
  8. }
  9.  
  10. int main() {
  11. test();
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5516KB
stdin
Standard input is empty
stdout
hello C++