still has some bugs
This commit is contained in:
parent
9aedd22204
commit
32691cc953
BIN
20240327/BMI_Calculator_SZM.rar
Normal file
BIN
20240327/BMI_Calculator_SZM.rar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
20240415/WindowsFormsApp1/.vs/WindowsFormsApp1/v17/.suo
Normal file
BIN
20240415/WindowsFormsApp1/.vs/WindowsFormsApp1/v17/.suo
Normal file
Binary file not shown.
|
@ -44,7 +44,7 @@ namespace WindowsFormsApp1
|
||||||
{
|
{
|
||||||
if (CharNotInList(guess, Data.charfound))
|
if (CharNotInList(guess, Data.charfound))
|
||||||
{
|
{
|
||||||
Data.charfound.Add(guess);
|
Data.charfound.Insert(0, guess);
|
||||||
Data.charfound.Sort();
|
Data.charfound.Sort();
|
||||||
label1.Text = labelTextChange(label1.Text);
|
label1.Text = labelTextChange(label1.Text);
|
||||||
}
|
}
|
||||||
|
@ -123,9 +123,32 @@ namespace WindowsFormsApp1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static string labelTextChange(string temp)
|
public string labelTextChange(string current)
|
||||||
{
|
{
|
||||||
return temp;
|
char[] temp = Data.word.ToCharArray();
|
||||||
|
char[] sol = current.ToCharArray();
|
||||||
|
while (Indexofchar(temp) != -1)
|
||||||
|
{
|
||||||
|
int a = Indexofchar(temp);
|
||||||
|
sol[a] = Data.charfound[0];
|
||||||
|
temp[a] = '_';
|
||||||
|
}
|
||||||
|
|
||||||
|
string asd = sol.ToString();
|
||||||
|
|
||||||
|
return asd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int Indexofchar(char[] arr)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < arr.Length; i++)
|
||||||
|
{
|
||||||
|
if (arr[i] == Data.wordchar[0])
|
||||||
|
{
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
||||||
8069502011d0681850e57a53d5a1673222f430a6
|
ffeb981a72357c13c78580d1de8dfcfdeab69b3831ebd504970e578b1a834c6f
|
||||||
|
|
|
@ -18,3 +18,13 @@ C:\Users\szabomarton\Desktop\C#\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\Win
|
||||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache
|
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe
|
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.AssemblyReference.cache
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Form1.resources
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Properties.Resources.resources
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.GenerateResource.cache
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe.config
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240415\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.pdb
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user