|
@@ -18,11 +18,18 @@ namespace Exam
|
|
{
|
|
{
|
|
Tubes[] tube = new Tubes[0];
|
|
Tubes[] tube = new Tubes[0];
|
|
tube = ReadData.Read("data.txt", ref tube);
|
|
tube = ReadData.Read("data.txt", ref tube);
|
|
- int i = 1;
|
|
|
|
- foreach (Tubes tub in tube)
|
|
|
|
|
|
+
|
|
|
|
+ double[] diameters = new double[] { 20, 25, 32, 40, 50, 63 };
|
|
|
|
+
|
|
|
|
+ for (int i = 0; i < tube.Length; i++)
|
|
{
|
|
{
|
|
- Console.WriteLine(i++ + " " + tub.name + " " + tub.isReinforced);
|
|
|
|
|
|
+ if (!(3960 <= tube[i].length && tube[i].length >= 4040))
|
|
|
|
+ {
|
|
|
|
+ tube[i].isDefective = true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|