Write a template-based class Group that implement a set of items. A group is a set of
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a template-based class Group that implement a set of items. A group is a set of items in which no item occurs more than once. Internally, you use vector to represent the group. In your Group template class, please define and implement the following member functions:
default constructor
search() to return whether an item is already in the group i.e., a Boolean type
insert() to add a new item to the group. If the item is already in the group then nothing happens.
size() to return the size of the group, i.e., number of items in the group
Related Book For
Auditing A Practical Approach
ISBN: 9780730382645
4th Edition
Authors: Robyn Moroney, Fiona Campbell, Jane Hamilton
Posted Date: