Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Equipments.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- const int maxEquipment = 10;
- Equipment* alk[maxEquipment];
- for(int i = 0; i < maxEquipment; i++)
- {
- alk[i] = new Equipment ( 0 , 0 );
- }
- alk[0] = new Printer(123, 3300, 45000);
- alk[1] = new Monitor(124, 34000, 2, 21);
- alk[2] = new Equipment(125, 35000);
- alk[3] = new Monitor(126, 23000, 4, 19);
- alk[4] = new Printer(127, 7000, 13000);
- alk[5] = new Monitor(128, 55000, 7, 22);
- for(int i = 0; i < maxEquipment; i++)
- {
- alk[i]->Print();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement