This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Player player = new Player(10, 10); | |
Draw drawer = new Draw(); | |
player.SetIcon('&'); | |
drawer.DrawPlayer(player.X, player.Y, player.Icon); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Player player1 = new Player("Тестировщик", 20, 100, 1000); | |
Player player2 = new Player("Топ донатер", 14, 999, 999999); | |
player1.ShowInfo(); | |
player2.ShowInfo(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Dictionary<string, string> dossiers = new Dictionary<string, string>(); | |
string input; | |
string inputName; | |
string inputPost; | |
bool isExit = false; | |
while (!isExit) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
List<int> numbers = new List<int>(); | |
int sum = 0; | |
string inputValue; | |
int inputNumber; | |
bool isOpen = true; | |
Console.WriteLine("Программа осуществляет суммирование данных"); | |
Console.WriteLine("Для ввода доступны целые числа, а также команды sum " + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Queue<int> buyersList = new Queue<int>(); | |
int sum = 0; | |
buyersList.Enqueue(18); | |
buyersList.Enqueue(213); | |
buyersList.Enqueue(108); | |
buyersList.Enqueue(65); | |
buyersList.Enqueue(34); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Dictionary<string, string> translator = new Dictionary<string, string>(); | |
string input; | |
translator.Add("Птица", "Bird"); | |
translator.Add("Рыба", "Fish"); | |
translator.Add("Рептилия", "Reptile"); | |
translator.Add("Бактерия", "Bacterium"); | |
translator.Add("Хищник", "Predator"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
bool isFinish = false; | |
int valueChangeX; | |
int valueChangeY; | |
int userX = 4; | |
int userY = 4; | |
char[,] map = | |
{ | |
{'#','#','#','#','#','#','#','#','#','#','#','#','#'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
string[] names = new string[0]; | |
string[] posts = new string[0]; | |
string input; | |
string inputValue; | |
bool isExit = false; | |
int indexToDelete; | |
int foundIndex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Console.WriteLine("Успех. Введено число " + ReadInt()); | |
} | |
static int ReadInt() | |
{ | |
int foundInt = 0; | |
bool intFound = false; | |
string input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
int[] array = new int[10]; | |
Random random = new Random(); | |
for (int i = 0; i < array.Length; i++) | |
array[i] = random.Next(0, 10); | |
WriteArray(array); | |
Shuffle(array); |