Created
September 16, 2016 06:31
-
-
Save avamsi/a4f505d7c9ffa22f385bf3a22aa2f785 to your computer and use it in GitHub Desktop.
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 <bits/stdc++.h> | |
#define _ ios::sync_with_stdio(0); cin.tie(0); | |
using namespace std; | |
struct print{bool space=false;~print(){cout<<'\n';}template<typename T>print&operator,(const T&var){if(space){cout<<' ';}else{space=true;}cout<<var;return*this;}}; | |
#define print print(), | |
int main() {_ | |
print 1, 2; | |
print "Hello World!"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment