1234567891011121314151617181920212223242526272829303132 |
- using System;
- namespace ExamSergeichev
- {
- class program
- {
- public struct Pipes
- {
- public string name;
- public int length;
- public double diameter;
- public double thickness;
- public string isDefective;
- public string isReinforced;
- }
- static void Main(string[] args)
- {
- Pipes[] pipe = new Pipes[0];
- pipe = ReadData.Read("data.txt", ref pipe);
- marriage obg = new marriage();
- obg.checkMarriage(ref pipe);
- for (int i = 0; i< pipe.Length; i++)
- {
- Console.WriteLine($"{pipe[i].isReinforced}{pipe[i].name}, {pipe[i].length}, {pipe[i].diameter}, {pipe[i].thickness}, {pipe[i].isDefective}");
- Console.WriteLine();
- }
- }
- }
- }
|