-
-
Save aGIToz/eeeb7d24520945e0a36071ff1f1894fa to your computer and use it in GitHub Desktop.
Python-like print in c++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
void print(){cout<<'\n';} | |
template<typename T, typename ...TAIL> | |
void print(const T &t, TAIL... tail) | |
{ | |
cout<<t<<' '; | |
print(tail...); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment