Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ========================================
- Here is an example on the set of animals
- Set S = { }
- Note that the elements in S are distinct and not in order
- Wish to try the following operations?
- 1. Add an element to the set
- 2. Check an element in the set
- 3. Check the cardinality
- 9. Quit
- Your choice: 1
- ========================================
- Current Set S = { }
- Enter an element: Tiger
- 1
- New Set S = {Tiger}
- Wish to try the following operations?
- 1. Add an element to the set
- 2. Check an element in the set
- 3. Check the cardinality
- 9. Quit
- Your choice: 1
- ========================================
- Current Set S = {Tiger}
- Enter an element: Tiger
- 1
- 2
- New Set S = {Tiger,Tiger}
- Wish to try the following operations?
- 1. Add an element to the set
- 2. Check an element in the set
- 3. Check the cardinality
- 9. Quit
- Your choice: 1
- ========================================
- Current Set S = {Tiger,Tiger}
- Enter an element: Tiger
- 1
- 2
- 3
- New Set S = {Tiger,Tiger,Tiger}
- Wish to try the following operations?
- 1. Add an element to the set
- 2. Check an element in the set
- 3. Check the cardinality
- 9. Quit
- Your choice: 1
- ========================================
- Current Set S = {
- Press Enter to return to Quincy...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement