Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace stupid
- {
- class Program
- {
- static void Main(string[] args)
- {
- StreamReader sr = new StreamReader("Deinen Drecks pfad wo die Datei gespeichert ist Kappa");
- string carinf;
- carinf = sr.ToString();
- string[] Chef = new string[999];
- string[] Manager = new string[999];
- string[] Mitarbeiter = new string[999];
- string[] car = new string[999];
- car = carinf.Split(';');
- #region "Einteilung Team"
- for (int b = 0; b < car.Length; b++)
- {
- int a = 0;
- if (car[a] == "1")
- {
- for (int i = 0; i < 4; i++)
- {
- Chef[i] = car[i];
- }
- a += 5;
- } else if (car[a] == "2")
- {
- for (int i = 0; i < 4; i++)
- {
- Manager[i] = car[i];
- }
- a += 5;
- }
- else if (car[a] == "3")
- {
- for (int i = 0; i < 4; i++)
- {
- Mitarbeiter[i] = car[i];
- }
- a += 5;
- }
- }
- for(int x = 0; x<= Chef.Length; x++)
- {
- if(Chef[x] == "1")
- {
- Console.WriteLine("Chef Auto:");
- }
- else if(Chef[x] == "D"){
- Console.Write("Diesel");
- } else if(Chef[x] == "B")
- {
- Console.Write("Benzin");
- }else if (Chef[x].Length > 2)
- {
- Console.Write(Chef[x] + " KM");
- }else if (Chef[x].Contains(','))
- {
- Console.Write(Chef[x] + "Liter pro 100 KM");
- }
- }
- #endregion
- #region "Kosten Rechnen"
- #endregion
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement