Advertisement
Guest User

Untitled

a guest
May 6th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <vector>
  2.  
  3. using namespace std;
  4.  
  5. struct Page{
  6. int a;
  7. int b;
  8. };
  9.  
  10. int main()
  11. {
  12. vector<Page> v;
  13.  
  14. Page p = {1, 0};
  15. v.push_back(p);
  16.  
  17. // compile error:
  18. // Page p = Page{1, 0};
  19. // v.push_back(p);
  20.  
  21. // compile error:
  22. // v.push_back(Page{1, 0});
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement