Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ekwipunek
- {
- public class Inventory
- {
- string[] arrayItems = new string[6];
- public void AddItem(string item)
- {
- }
- public void DisplayItems()
- {
- foreach (string item in arrayItems)
- Console.Write(item + ";");
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- Inventory ekwipunek = new Inventory();
- Console.WriteLine("Wpisz komende /add /switch /displayall");
- //string command = Console.ReadLine();
- ekwipunek.DisplayItems();
- //switch (command)
- //{
- // case "/displayall":
- // ekwipunek.DisplayItems();
- // break;
- // case "/add":
- // break;
- // case "/switch":
- // break;
- //}
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment