Skip to content

Instantly share code, notes, and snippets.

@Thiago4532
Created May 21, 2019 22:22
Show Gist options
  • Save Thiago4532/a77a031c93fb80b1466989880174ff86 to your computer and use it in GitHub Desktop.
Save Thiago4532/a77a031c93fb80b1466989880174ff86 to your computer and use it in GitHub Desktop.
#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