Skip to content

Instantly share code, notes, and snippets.

@avamsi
Created September 16, 2016 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avamsi/a4f505d7c9ffa22f385bf3a22aa2f785 to your computer and use it in GitHub Desktop.
Save avamsi/a4f505d7c9ffa22f385bf3a22aa2f785 to your computer and use it in GitHub Desktop.
#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