Created
May 21, 2019 22:22
-
-
Save Thiago4532/919bb2e39bc897df31d6ab0fcfd861c1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> // 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