Skip to content

Instantly share code, notes, and snippets.

@prabodhprakash
Created May 10, 2020 20:43
Show Gist options
  • Save prabodhprakash/2e63ae4cf37af7c19f4e689ae8060198 to your computer and use it in GitHub Desktop.
Save prabodhprakash/2e63ae4cf37af7c19f4e689ae8060198 to your computer and use it in GitHub Desktop.
Input/Output cpp
/*
if let's say there is an array of size n, and input have to be taken, below is the best way to do it
*/
cin >> arrSize;
vector<int> arr(arrSize);
for (auto &it: arr) {
cin >> it;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment