Advertisement
Guest User

Untitled

a guest
May 25th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <utility>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. pair<string, int> f() {
  8.     return pair<string, int>("text", 10);
  9. }
  10.  
  11. int main() {
  12.     std::pair<string, int> x = f();
  13.  
  14.     cout << x.first << endl << x.second << endl;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement