コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: sonicrang/Train_TS
 /// <summary>
 /// 置乱不同性能的车辆
 /// </summary>
 private void MixInfo()
 {
     int i;
     S_train temp = new S_train();
     Mix myMix = new Mix();
     Logisitic = myMix.Logistic(add_count);
     for (i = 0; i < add_count; i += 2)
     {
         temp = train[(int)Logisitic[i]];
         train[(int)Logisitic[i]] = train[(int)Logisitic[i + 1]];
         train[(int)Logisitic[i + 1]] = temp;
     }
 }