Last active
May 6, 2019 02:47
-
-
Save sofhiasouza/814465c57d6dd891c1658faf081e0b8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <set> //biblioteca do set | |
using namespace std; | |
int main(){ | |
set<int> t; | |
t.insert(5); | |
t.insert(12); | |
if(t.find(5) != t.end()) //verifico se o 5 está no meu conjunto | |
cout << 5 << "\n"; //se estiver, imprimo o valor | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment