Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
public class Program
{
static void Main(string[] args)
{
}
}
@Silence2100
Silence2100 / gist:30be5b7a3c055cced85ad339c7177476
Last active May 29, 2024 17:05
Хранилище книг
using System;
using System.Collections.Generic;
public class Program
{
static void Main(string[] args)
{
const string CommandAddBook = "1";
const string CommandRemoveBook = "2";
const string CommandShowAllBooks = "3";
using System;
using System.Collections.Generic;
public class Program
{
static void Main(string[] args)
{
Croupier croupier = new Croupier();
croupier.StartGame();
@Silence2100
Silence2100 / gist:c47176a34980dec66de66144a95009e6
Last active May 24, 2024 10:37
База данных игроков
using System;
using System.Collections.Generic;
public class Program
{
static void Main(string[] args)
{
const string CommandAddPlayer = "1";
const string CommandBanPlayer = "2";
const string CommandUnbanPlayer = "3";
@Silence2100
Silence2100 / gist:40ce03b922cb0715a1e734b5bd8fe048
Last active May 22, 2024 18:05
Работа со свойствами
public class Program
{
static void Main(string[] args)
{
Player player = new Player(10, 10, '@');
Renderer renderer = new Renderer();
renderer.DrawPlayer(player);
}
}
@Silence2100
Silence2100 / gist:c189322e1d1db51505197df0e16d4bd8
Created May 21, 2024 15:59
Работа с классами
using System;
public class Program
{
static void Main(string[] args)
{
Player player1 = new Player("Денис", 18, 3, "Орк");
Player player2 = new Player("Вадим", 15, 12, "Рыцарь");
player1.DisplayInfoPlayer();
@Silence2100
Silence2100 / gist:f70811f6e5d126545aef6fc32ef5aa88
Created May 19, 2024 17:51
Объединение в одну коллекцию
using System;
using System.Collections.Generic;
namespace Task003
{
internal class Program
{
static void Main(string[] args)
{
string[] words1 = new string[] {"привет", "пока", "собака", "кошка", "привет"};
@Silence2100
Silence2100 / gist:b575c22d11da4dfd474daa8fec8396ba
Last active May 19, 2024 16:42
Кадровый учёт продвинутый
using System;
using System.Collections.Generic;
namespace Task003
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAddEmployee = "1";
@Silence2100
Silence2100 / gist:d169b3ea7b3b833667093089de1a949b
Last active May 18, 2024 19:23
Динамический массив продвинутый
using System;
using System.Collections.Generic;
namespace Task003
{
internal class Program
{
static void Main(string[] args)
{
bool isWork = true;
@Silence2100
Silence2100 / gist:8da1e62caaba9fedc073d7a2f2f5327e
Last active May 16, 2024 20:19
Очередь в магазин
using System;
using System.Collections.Generic;
namespace Task003
{
internal class Program
{
static void Main(string[] args)
{
Queue<int> cashRegister = new Queue<int>();