Skip to content

Instantly share code, notes, and snippets.

@Thiago4532
Created May 21, 2019 22:22
Show Gist options
  • Save Thiago4532/919bb2e39bc897df31d6ab0fcfd861c1 to your computer and use it in GitHub Desktop.
Save Thiago4532/919bb2e39bc897df31d6ab0fcfd861c1 to your computer and use it in GitHub Desktop.
#include <iostream> // Necessita da iostream para funcionar
using namespace std;
int main() {
pair< pair<int, string> , int> p;
p.first.first = 100; // Acessa o primeiro elemento do pair de dentro.
p.first.second = "Lawrence"; // Acessa o segundo elemento do pair de dentro.
p.second = 7; // Acessa o segundo elemento do pair principal.
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment