Guest User

Untitled

a guest
May 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. struct test
  2. {
  3. int a;
  4. int b;
  5. std::string str;
  6. };
  7.  
  8. int main()
  9. {
  10. std::map<int, test> test_map;
  11. test t1 = {1, 2, "hello"};
  12. test_map[0] = t1;
  13. return 0;
  14. }
  15.  
  16. int main()
  17. {
  18. std::map<int, test> test_map;
  19. test_map[0] = {1, 2, "hello"};
  20. return 0;
  21. }
Add Comment
Please, Sign In to add comment