コード例 #1
0
 public int AddPart(PartConroller[] parts, PartConroller part, int numb)
 {
     parts [numb] = part;
     numb++;
     return numb;
 }
コード例 #2
0
 public int DeletePart(PartConroller[] parts, int del, int numb)
 {
     for (int i=del+1;i<numb;i++)
         parts[i-1]=parts[i];
     numb--;
     return numb;
 }