fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void print() {}
  5.  
  6. template<class Head, class... Tail>
  7. void print(Head h, Tail... t)
  8. {
  9. cout << h << endl;
  10. print(t...);
  11. }
  12.  
  13. int main()
  14. {
  15. print(3, "hello", 4.5);
  16. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
3
hello
4.5