Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. struct lt
  4. {
  5.     int x;
  6. };
  7.  
  8. int main()
  9. {
  10.     lt *t = new lt;
  11.     t->x = 50;
  12.     t = new lt;
  13.     t->x = 70;
  14.     std::cout << t->x;
  15.     std::cin.ignore();
  16.     std::cin.get();
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement