• Source
    1. #include <iostream>
    2.  
    3. void print(std::ostream &os)
    4. {
    5. os << " World\n";
    6. }
    7.  
    8. int main()
    9. {
    10. print(std::cout<<"Hello");
    11. return 0;
    12. }