Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pool::Pool()
- {
- for (int i = 0; i < maxPoolSize; ++i)
- {
- if (head == NULL) {
- head = new memory;
- current = head;
- } else {
- current->next = new memory;
- current = current->next;
- cout << "Pool object # "<< i << " created" << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement