Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // g++ -o x x.cpp && ./x
- #include <iostream>
- struct CMeteor
- {
- CMeteor(unsigned x)
- {
- std::cout << x << std::endl;
- }
- };
- int main()
- {
- unsigned Amount = 5;
- for (unsigned i = 0; i < Amount; i++)
- {
- new CMeteor(i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement