Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- struct lt
- {
- int x;
- };
- int main()
- {
- lt *t = new lt;
- t->x = 50;
- t = new lt;
- t->x = 70;
- std::cout << t->x;
- std::cin.ignore();
- std::cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement