Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <utility>
- #include <string>
- using namespace std;
- pair<string, int> f() {
- return pair<string, int>("text", 10);
- }
- int main() {
- std::pair<string, int> x = f();
- cout << x.first << endl << x.second << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement