Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < _qtdmilitary; i++)
- {
- int rd = rand() % 2;
- if (rd == 0)
- military[i] = new Tank;
- else
- military[i] = new Fighter->fly;
- }
- for (int i = 0; i < _qtdcivilian; i++)
- {
- int rd = rand() % 2;
- if (rd == 0)
- civilian[i] = new Car->drive;
- else
- civilian[i] = new CargoPlane->fly;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement