Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. // g++ -o x x.cpp && ./x
  2.  
  3. #include <iostream>
  4.  
  5. struct CMeteor
  6. {
  7. CMeteor(unsigned x)
  8. {
  9. std::cout << x << std::endl;
  10. }
  11. };
  12.  
  13. int main()
  14. {
  15. unsigned Amount = 5;
  16. for (unsigned i = 0; i < Amount; i++)
  17. {
  18. new CMeteor(i);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement