Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading.Tasks;
- namespace TestFieldIthink
- {
- struct Storage
- {
- public string Name;
- public int Size;
- public List<string> items;
- private void ShowContent()
- {
- Console.WriteLine("\n[*] Склад содержит следующие предметы: ");
- for (int i = 0; i < items.Count; i++)
- Console.Write(items[i] + ", ");
- }
- public void Add(string item)
- {
- items.Add(item);
- ShowContent();
- }
- public void Delete()
- {
- }
- }
- internal class Program
- {
- static void Main(string[] args)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment