TODO finish
This commit is contained in:
@@ -129,7 +129,18 @@ namespace HegyekMO
|
|||||||
|
|
||||||
public static void Feladat8()
|
public static void Feladat8()
|
||||||
{
|
{
|
||||||
Dictionary<Hegy, int>
|
Dictionary<string, int> Csoportositotthegyek = new Dictionary<string, int>();
|
||||||
|
foreach (var item in Data.hegyek)
|
||||||
|
{
|
||||||
|
if (!Csoportositotthegyek.ContainsKey(item.Hegyseg))
|
||||||
|
{
|
||||||
|
Csoportositotthegyek.Add(item.Hegyseg, 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Csoportositotthegyek[item.Hegyseg]++;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user