2629881

Untitled

Jul 30th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.12 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ekwipunek
  8. {
  9.     public class Inventory
  10.     {
  11.         string[] arrayItems = new string[6];
  12.        
  13.          
  14.         public void AddItem(string item)
  15.         {
  16.            
  17.         }
  18.  
  19.         public void DisplayItems()
  20.         {
  21.             foreach (string item in arrayItems)
  22.                 Console.Write(item + ";");
  23.         }      
  24.     }
  25.  
  26.     class Program
  27.     {
  28.         static void Main(string[] args)
  29.         {
  30.             Inventory ekwipunek = new Inventory();
  31.             Console.WriteLine("Wpisz komende /add /switch /displayall");
  32.             //string command = Console.ReadLine();
  33.             ekwipunek.DisplayItems();
  34.             //switch (command)
  35.             //{
  36.             //    case "/displayall":
  37.             //        ekwipunek.DisplayItems();
  38.             //        break;
  39.             //    case "/add":
  40.             //        break;
  41.             //    case "/switch":
  42.             //        break;
  43.             //}
  44.             Console.ReadKey();
  45.         }
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment