Example #1
0
        public CSet Union(CSet B)
        {
            CSet Temp = new CSet(this);

            for (int i = 0; i < B.mNum; i++)
            {
                Temp.Insert(B.mArray[i]);
            }
            return(Temp);
        }
Example #2
0
        public CSet Interjection(CSet B)
        {
            CSet Temp = new CSet();

            for (int i = 0; i < mNum; i++)
            {
                for (int j = 0; j < B.mNum; j++)
                {
                    if (mArray[i] == B.mArray[j])
                    {
                        Temp.Insert(mArray[i]);
                        break;
                    }
                }
            }
            return(Temp);
        }
Example #3
0
 private void btnInsertB_Click(object sender, EventArgs e)
 {
     B.Insert(txtB, lstSetB);
 }
Example #4
0
 private void btnInsertA_Click(object sender, EventArgs e)
 {
     A.Insert(txtA, lstSetA);
 }