Skip to content

Instantly share code, notes, and snippets.

@Bloofer
Created December 24, 2018 08:00
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 Bloofer/e39c6470c952b1bf8d79874ea1184d72 to your computer and use it in GitHub Desktop.
Save Bloofer/e39c6470c952b1bf8d79874ea1184d72 to your computer and use it in GitHub Desktop.
increment example
// Bad Idea
for (int i = 0; i < 15; i++)
{
std::cout << i << std::endl;
}
// Good Idea
for (int i = 0; i < 15; ++i)
{
std::cout << i << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment