Advertisement
Guest User

Stupid

a guest
Nov 27th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace stupid
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. StreamReader sr = new StreamReader("Deinen Drecks pfad wo die Datei gespeichert ist Kappa");
  15.  
  16. string carinf;
  17. carinf = sr.ToString();
  18. string[] Chef = new string[999];
  19. string[] Manager = new string[999];
  20. string[] Mitarbeiter = new string[999];
  21. string[] car = new string[999];
  22.  
  23. car = carinf.Split(';');
  24.  
  25. #region "Einteilung Team"
  26. for (int b = 0; b < car.Length; b++)
  27. {
  28. int a = 0;
  29.  
  30. if (car[a] == "1")
  31. {
  32. for (int i = 0; i < 4; i++)
  33. {
  34. Chef[i] = car[i];
  35. }
  36.  
  37. a += 5;
  38. } else if (car[a] == "2")
  39. {
  40. for (int i = 0; i < 4; i++)
  41. {
  42. Manager[i] = car[i];
  43. }
  44.  
  45. a += 5;
  46. }
  47. else if (car[a] == "3")
  48. {
  49. for (int i = 0; i < 4; i++)
  50. {
  51. Mitarbeiter[i] = car[i];
  52. }
  53.  
  54. a += 5;
  55. }
  56. }
  57.  
  58. for(int x = 0; x<= Chef.Length; x++)
  59. {
  60. if(Chef[x] == "1")
  61. {
  62. Console.WriteLine("Chef Auto:");
  63. }
  64. else if(Chef[x] == "D"){
  65. Console.Write("Diesel");
  66. } else if(Chef[x] == "B")
  67. {
  68. Console.Write("Benzin");
  69. }else if (Chef[x].Length > 2)
  70. {
  71. Console.Write(Chef[x] + " KM");
  72. }else if (Chef[x].Contains(','))
  73. {
  74. Console.Write(Chef[x] + "Liter pro 100 KM");
  75. }
  76. }
  77. #endregion
  78.  
  79. #region "Kosten Rechnen"
  80.  
  81. #endregion
  82.  
  83.  
  84. Console.ReadKey();
  85. }
  86. }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement