Example #1
0
 public void ArrayFill(ClubMember[] cmArray)
 {
     for (int i = 0; i < cmArray.Length; i++)
     {
         cmArray[i] = CMFactory.GetClubMember();
     }
 }
Example #2
0
 public void TreeFill(MyBST bst, int size, ClubMember[] arr)
 {
     for (int i = 0; i < size; i++)
     {
         arr[i] = CMFactory.GetClubMember();
         bst.Insert(arr[i]);
     }
 }
Example #3
0
        public void HashAdtFill(HashADT hashObj, int size)
        {
            int properSize = size + (size / 10);

            for (int i = 0; i < properSize; i++)
            {
                ClubMember cm = CMFactory.GetClubMember();
                hashObj.Insert(cm);
            }
        }