reset password
Author Message
AndersonChristoph
Posts: 34
Posted 10:34 Jan 30, 2015 |

For the add function it says "Adds the given value of x to the set."  What set are we talking about?  Set 1, 2, or the last set that was accessed?  Can we alter the function to be a member function so we can call "defaultSet1.add(9)"?

Edit: Ohhhh, it should be in the MySet class..

Last edited by AndersonChristoph at 10:38 Jan 30, 2015.
kknaur
Posts: 540
Posted 10:38 Jan 30, 2015 |
AndersonChristoph wrote:

For the add function it says "Adds the given value of x to the set."  What set are we talking about?  Set 1, 2, or the last set that was accessed?  Can we alter the function to be a member function so we can call "defaultSet1.add(9)"?

"MySet should include the following member functions:" (add is part of this list)

AndersonChristoph
Posts: 34
Posted 10:39 Jan 30, 2015 |

Probably shouldn't be trying to write programs the second I open my eyes in the morning..

kknaur
Posts: 540
Posted 10:40 Jan 30, 2015 |

It's all good :)