feladat d bizonyítás

This commit is contained in:
Digi 2025-03-06 10:46:25 +01:00
parent f63209588d
commit c7b0f6f595
12 changed files with 37 additions and 2 deletions

View File

@ -28,7 +28,7 @@
"RelativeDocumentMoniker": "Program.cs",
"ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_2\\Program\\Program.cs",
"RelativeToolTip": "Program.cs",
"ViewState": "AgIAAKIAAAAAAAAAAAAuwMYAAAAqAAAAAAAAAA==",
"ViewState": "AgIAANMAAAAAAAAAAAAmwOAAAAAjAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-03-05T11:40:10.358Z",
"EditorCaption": ""

View File

@ -28,7 +28,7 @@
"RelativeDocumentMoniker": "Program.cs",
"ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_2\\Program\\Program.cs",
"RelativeToolTip": "Program.cs",
"ViewState": "AgIAAKIAAAAAAAAAAAAuwMYAAAAqAAAAAAAAAA==",
"ViewState": "AgIAANMAAAAAAAAAAAAmwOAAAAAjAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-03-05T11:40:10.358Z",
"EditorCaption": ""

View File

@ -194,12 +194,18 @@ namespace Program
}
}
// c megoldás
string cmegoldasString = "";
foreach (var item in feladatCMegoldas)
{
Console.Write(item + " ");
cmegoldasString += item + " ";
}
Console.WriteLine();
//Ellenőrzés a kapott kódra
/*
@ -216,7 +222,36 @@ namespace Program
Console.WriteLine( new string(solvedCharsForFeladatC.ToArray()));
*/
// d feladat bizonyítás
/*
List<char> maganhangzok = new List<char>();
foreach (char c in cmegoldasString)
{
if (vowelsLookUp.Contains(c))
{
maganhangzok.Add(c);
}
}
string asd = new string(vowels.ToArray());
List<char> megtalatkarakterek = new List<char>();
for (int i = 0; i < feladatBString.Length; i += 2)
{
int row = lookUpTable[feladatBString[i]];
int col = lookUpTable[feladatBString[i + 1]];
megtalatkarakterek.Add(tablazat[row, col]);
}
Console.WriteLine(new string(megtalatkarakterek.ToArray()));
*/
}
static char[,] CreateAlphabetMatrix()