Exemple #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);
        }
Exemple #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);
        }
Exemple #3
0
 private void btnInsertB_Click(object sender, EventArgs e)
 {
     B.Insert(txtB, lstSetB);
 }
Exemple #4
0
 private void btnInsertA_Click(object sender, EventArgs e)
 {
     A.Insert(txtA, lstSetA);
 }