Skip to content

Instantly share code, notes, and snippets.

@sofhiasouza
Created May 6, 2019 02:51
Show Gist options
  • Save sofhiasouza/a55cd3ee24cc6fc7f6691c076930c4a0 to your computer and use it in GitHub Desktop.
Save sofhiasouza/a55cd3ee24cc6fc7f6691c076930c4a0 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <set> //biblioteca do set
using namespace std;
int main(){
set< int > t;
for(int i = 10 ; i >= 1 ; i--)
t.insert(i);
set < int >::iterator it;
for(it = t.begin() ; it != t.end() ; it++)
cout << *it << " ";
cout << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment