fork(84) download
  1. #include <string>
  2. #include <iostream>
  3.  
  4. void Output() {
  5. std::cout<<std::endl;
  6. }
  7.  
  8. template<typename First, typename ... Strings>
  9. void Output(First arg, const Strings&... rest) {
  10. std::cout<<arg<<" ";
  11. Output(rest...);
  12. }
  13.  
  14. int main() {
  15. Output("I","am","a","sentence");
  16. Output("Let's","try",1,"or",2,"digits");
  17. return 0;
  18. }
Success #stdin #stdout 0s 2832KB
stdin
Standard input is empty
stdout
I am a sentence 
Let's try 1 or 2 digits