Created
May 21, 2019 22:22
-
-
Save Thiago4532/a77a031c93fb80b1466989880174ff86 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<string, int> p; // Declara um pair de string e int | |
p.first = "Thiago"; | |
p.second = 2; | |
// Através dos elementos first e second é possivel alterar os elementos do pair. | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment