-
Notifications
You must be signed in to change notification settings - Fork 0
/
Octindex.cs
41 lines (34 loc) · 913 Bytes
/
Octindex.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace Indexaoterner
{
class Program
{
static void Main(string[] args)
{
Cow c1 = new Cow();
Cow c2 = new Cow("Nargiz", 17, 120);
WriteLine(c1 + "\t" + c2);
Naxir nx = new Naxir();
nx.Add(new Cow());
nx.Add(new Cow("Manushak"));
//foreach (Cow cw i nx)
//{
// WriteLine(cw)
//}
for (int i = 0; i < nx.Count; i++)
{
WriteLine(nx[i]);
}
nx[1] = new Cow("Boo");
WriteLine(nx[1]);
WriteLine(nx["Boo"]);
nx["Boo"] = new Cow("Anushik");
WriteLine(nx["Anushik"]);
}
}
}