Check out example codes for "leetcode fast io". It will help you in understanding the concepts better.

Code Example 1

static bool     _foo = ios::sync_with_stdio(false);
static ostream* _bar = cin.tie(NULL);

Learn ReactJs, React Native from akashmittal.com