30-seconds-of-cpp icon indicating copy to clipboard operation
30-seconds-of-cpp copied to clipboard

Update set rend to match style guide

Open sometallgit opened this issue 4 years ago • 0 comments

This PR makes changes to rend.md to conform to the contributing.md style guide. It also adds a corresponding rend.cpp code snippet.

Changes

  • Remove <bits/stdc++.h> header and replace it with the correct <set> include.
  • Update set to use list initialization rather than copying from a C-style array.
  • Remove using namespace std.
  • Update run code example.
  • Add code snippet.

Checklist

  • [X] I have read CONTRIBUTING guidelines.
  • [ ] This is a typo fix.
  • [X] I am not updating any todo.txt files.

sometallgit avatar Oct 11 '20 04:10 sometallgit