Program.cs 855 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. namespace ExamSergeichev
  3. {
  4. class program
  5. {
  6. public struct Pipes
  7. {
  8. public string name;
  9. public int length;
  10. public double diameter;
  11. public double thickness;
  12. public string isDefective;
  13. public string isReinforced;
  14. }
  15. static void Main(string[] args)
  16. {
  17. Pipes[] pipe = new Pipes[0];
  18. pipe = ReadData.Read("data.txt", ref pipe);
  19. marriage obg = new marriage();
  20. obg.checkMarriage(ref pipe);
  21. for (int i = 0; i< pipe.Length; i++)
  22. {
  23. Console.WriteLine($"{pipe[i].isReinforced}{pipe[i].name}, {pipe[i].length}, {pipe[i].diameter}, {pipe[i].thickness}, {pipe[i].isDefective}");
  24. Console.WriteLine();
  25. }
  26. }
  27. }
  28. }