You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.1 KiB
86 lines
2.1 KiB
using ConsoleApp1.Animals;
|
|
using ConsoleApp1.Cards;
|
|
|
|
namespace ConsoleApp1
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
// h_PlayCards();
|
|
Animal animal = new Animal();
|
|
Animal.MilkConsumerAreaInfo info = animal.GetAreaInfo();
|
|
h_Afd();
|
|
Console.ReadKey();
|
|
}
|
|
|
|
private static void h_Afd()
|
|
{
|
|
int ii = 0;
|
|
Console.WriteLine(ii);
|
|
h_Afd1(ii);
|
|
Console.WriteLine(ii);
|
|
h_Afd2(ref ii);
|
|
Console.WriteLine(ii);
|
|
h_Afd3(out ii);
|
|
Console.WriteLine(ii);
|
|
|
|
List<int> ll = new List<int>();
|
|
h_Lfd(ll);
|
|
|
|
//h_CountOddAndEven(ll);
|
|
}
|
|
|
|
private static bool h_CountOddAndEven(List<int> ll,
|
|
out int iEvenCount, out int iOddCount)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
private static void h_Lfd(List<int> ll)
|
|
{
|
|
ll.Add(1);
|
|
ll.Add(2);
|
|
|
|
}
|
|
|
|
private static void h_Afd1(int ii)
|
|
{
|
|
ii++;
|
|
}
|
|
private static void h_Afd2(ref int ii)
|
|
{
|
|
ii++;
|
|
}
|
|
private static void h_Afd3(out int ii)
|
|
{
|
|
ii = 10;
|
|
}
|
|
|
|
private static void h_PlayCards()
|
|
{
|
|
CardSuit myCardType = CardSuit.Черви;
|
|
Console.WriteLine($"{myCardType}");
|
|
|
|
Card[] arCards = new Card[36];
|
|
CardSuit[] arColors = (CardSuit[])Enum.GetValues(typeof(CardSuit));
|
|
CardValue[] arValues = (CardValue[])Enum.GetValues(typeof(CardValue));
|
|
|
|
int ii = 0;
|
|
foreach (CardSuit color in arColors)
|
|
{
|
|
foreach (CardValue value in arValues)
|
|
{
|
|
Card _card = new Card(color, value);
|
|
arCards[ii] = _card;
|
|
ii++;
|
|
}
|
|
}
|
|
|
|
foreach (var card in arCards)
|
|
{
|
|
Console.WriteLine($"{card.Suit}:{card.Value}");
|
|
}
|
|
}
|
|
}
|
|
}
|