This file contains hidden or 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) | |
| { | |
| Renderer renderer = new Renderer(); | |
| Player player = new Player(5, 5, '@'); | |
| renderer.Draw(player.PositionX, player.PositionY, player.Symbol); | |
| } | |
| } |
This file contains hidden or 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("Augures", 2000, 100, 88); | |
| player.ShowInfo(); | |
| } | |
| } |
This file contains hidden or 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) | |
| { | |
| string[] array1 = { "1", "2", "1" }; | |
| string[] array2 = { "3", "2" }; | |
| List<string> collection = new List<string>(); | |
| AddItem(array1, collection); | |
| AddItem(array2, collection); |
This file contains hidden or 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) | |
| { | |
| const string CommandToAddDossier = "1"; | |
| const string CommandToShowDossiers = "2"; | |
| const string CommandToDeleteDossier = "3"; | |
| const string CommandToSeachSurname = "4"; | |
| const string CommandToExit = "5"; |
This file contains hidden or 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) | |
| { | |
| const string CommandSum = "sum"; | |
| const string CommandExit = "exit"; | |
| List<int> numbers = new List<int>(0); | |
| string userInput; | |
| bool isWork = true; |
This file contains hidden or 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) | |
| { | |
| Queue<int> clients = CreateQueue(); | |
| int cash = 0; | |
| int clientNumber = 1; | |
| while (clients.Count > 0) | |
| { |
This file contains hidden or 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) | |
| { | |
| const string CommandToUseDictinary = "1"; | |
| const string CommandToEXit = "2"; | |
| Dictionary<string, string> dictionary = new Dictionary<string, string>(); | |
| dictionary.Add("Кит", "кровосися"); |
This file contains hidden or 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) | |
| { | |
| int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; | |
| DrawArray(array); | |
| Shuffle(array); | |
| DrawArray(array); | |
| } |
This file contains hidden or 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) | |
| { | |
| int collectStar = 0; | |
| bool doesStarsCollect = false; | |
| char[,] map = ReadMap(out int playerPositionX, out int playerPositionY, out int allStar, out char player, out char wall, out char star); | |
| int positionX = 12; | |
| Console.CursorVisible = false; |
This file contains hidden or 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) | |
| { | |
| int number; | |
| number = GetNumber(); | |
| Console.WriteLine(number); | |
| } |
NewerOlder