fork(4) download
  1. #include <iostream>
  2. #include <bitset>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. void print() {
  8. cout<<"Nothing to print :)" ;
  9. }
  10.  
  11. template<typename T,typename... args>
  12. void print(T x,args... y) {
  13. cout<<x<<endl;
  14. print(y...);
  15. }
  16.  
  17. int main() {
  18. print(10,14.56,"Quora",bitset<20>(28));
  19. return 0;
  20. }
Success #stdin #stdout 0s 3480KB
stdin
Standard input is empty
stdout
10
14.56
Quora
00000000000000011100
Nothing to print :)