Add project files.
This commit is contained in:
parent
db8e363915
commit
fa2bc934af
25
LottoProgram.sln
Normal file
25
LottoProgram.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.32413.511
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LottoProgram", "LottoProgram\LottoProgram.csproj", "{2B04C2A8-BD16-4B14-9F9A-11BD01114F73}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{2B04C2A8-BD16-4B14-9F9A-11BD01114F73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{2B04C2A8-BD16-4B14-9F9A-11BD01114F73}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{2B04C2A8-BD16-4B14-9F9A-11BD01114F73}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{2B04C2A8-BD16-4B14-9F9A-11BD01114F73}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {94F776F8-E418-4E94-A224-4A6820A1CDC6}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
8
LottoProgram/LottoProgram.csproj
Normal file
8
LottoProgram/LottoProgram.csproj
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
18
LottoProgram/LottoSzelveny.cs
Normal file
18
LottoProgram/LottoSzelveny.cs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace LottoProgram
|
||||||
|
{
|
||||||
|
class LottoSzelveny
|
||||||
|
{
|
||||||
|
public int tipus;
|
||||||
|
public int[] szamok;
|
||||||
|
|
||||||
|
public LottoSzelveny(int t)
|
||||||
|
{
|
||||||
|
tipus = t;
|
||||||
|
szamok = new int[tipus];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
52
LottoProgram/Lottozo.cs
Normal file
52
LottoProgram/Lottozo.cs
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace LottoProgram
|
||||||
|
{
|
||||||
|
class Lottozo
|
||||||
|
{
|
||||||
|
public LottoSzelveny[] szelvenyek;
|
||||||
|
public int szelvenySzam;
|
||||||
|
public void bekeres()
|
||||||
|
{
|
||||||
|
Console.WriteLine("Üdvözlöm a lottózóban! Hány szelvényt szeretne?");
|
||||||
|
szelvenySzam = int.Parse(Console.ReadLine());
|
||||||
|
szelvenyek = new LottoSzelveny[szelvenySzam];
|
||||||
|
//Console.WriteLine(szelvenyek[0]);
|
||||||
|
for (int i = 0; i < szelvenySzam; i++)
|
||||||
|
{
|
||||||
|
int szt = 0;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
Console.WriteLine("Add meg a(z) {0}. szelvény típusát (5,6,7)!", i + 1);
|
||||||
|
szt = int.Parse(Console.ReadLine());
|
||||||
|
|
||||||
|
}
|
||||||
|
while (szt < 5 || szt > 7);
|
||||||
|
|
||||||
|
szelvenyek[i] = new LottoSzelveny(szt);
|
||||||
|
|
||||||
|
Console.WriteLine("Add meg a kitöltés módját (Kézi: k vagy Automatikus: a) !");
|
||||||
|
string mod = Console.ReadLine();
|
||||||
|
|
||||||
|
if (mod.ToLower()=="k")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (mod.ToLower() == "g")
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void kezikitoltes(LottoSzelveny sz)
|
||||||
|
{
|
||||||
|
Console.WriteLine("A szelvény kitöltése kézi! {0}-s lottó",sz.tipus);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
13
LottoProgram/Program.cs
Normal file
13
LottoProgram/Program.cs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace LottoProgram
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Lottozo lottozo = new Lottozo();
|
||||||
|
lottozo.bekeres();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user