Added everything from Kalmar
This commit is contained in:
parent
13dc94d004
commit
40d12f5d58
BIN
20230913_doga/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
BIN
20230913_doga/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
Binary file not shown.
6
20230913_doga/ConsoleApp1/App.config
Normal file
6
20230913_doga/ConsoleApp1/App.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
53
20230913_doga/ConsoleApp1/ConsoleApp1.csproj
Normal file
53
20230913_doga/ConsoleApp1/ConsoleApp1.csproj
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{BEFF2F03-9252-429D-A6C2-E7FD64D23145}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
25
20230913_doga/ConsoleApp1/ConsoleApp1.sln
Normal file
25
20230913_doga/ConsoleApp1/ConsoleApp1.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.33529.622
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{BEFF2F03-9252-429D-A6C2-E7FD64D23145}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {94843553-FEE7-425F-A04C-37B898764952}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
155
20230913_doga/ConsoleApp1/Program.cs
Normal file
155
20230913_doga/ConsoleApp1/Program.cs
Normal file
|
@ -0,0 +1,155 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace ConsoleApp1
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
//B csoport lottó
|
||||||
|
|
||||||
|
static void Feladat1()
|
||||||
|
{
|
||||||
|
//1. feladat
|
||||||
|
int[] szamok = { };
|
||||||
|
|
||||||
|
Console.WriteLine("Add meg az 52.hét lottó számait!");
|
||||||
|
for (int i = 0; i < 5; ++i)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Add meg az {i+1}. számot!");
|
||||||
|
int het52 = Convert.ToInt32(Console.ReadLine());
|
||||||
|
szamok = szamok.Append(het52).ToArray();
|
||||||
|
}
|
||||||
|
Console.WriteLine();
|
||||||
|
|
||||||
|
//2. feladat
|
||||||
|
Array.Sort(szamok);
|
||||||
|
foreach (int n in szamok)
|
||||||
|
{
|
||||||
|
Console.WriteLine(n);
|
||||||
|
}
|
||||||
|
Console.WriteLine();
|
||||||
|
|
||||||
|
//3. feladat
|
||||||
|
Console.WriteLine("Addj meg egy számot 1-51 között!");
|
||||||
|
int felhszam = Convert.ToInt32(Console.ReadLine());
|
||||||
|
|
||||||
|
//4. feladat
|
||||||
|
int paratlandb = 0;
|
||||||
|
int[,] lottoszamok = new int[51,5];
|
||||||
|
FileStream fs = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230913_doga\lottosz.txt", FileMode.Open);
|
||||||
|
StreamReader sr = new StreamReader(fs);
|
||||||
|
|
||||||
|
FileStream fs_2 = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230913_doga\lotto52ki.txt", FileMode.CreateNew);
|
||||||
|
StreamWriter sw = new StreamWriter(fs_2);
|
||||||
|
|
||||||
|
for (int i = 0; i < 51; ++i)
|
||||||
|
{
|
||||||
|
string str = sr.ReadLine();
|
||||||
|
string[] hetiszamok = str.Split(' ');
|
||||||
|
|
||||||
|
for (int j = 0; j < hetiszamok.Length; ++j)
|
||||||
|
{
|
||||||
|
int szam = Convert.ToInt32(hetiszamok[j]);
|
||||||
|
lottoszamok[i,j] = szam;
|
||||||
|
if (szam % 2 != 0)
|
||||||
|
{
|
||||||
|
paratlandb++;
|
||||||
|
}
|
||||||
|
sw.Write($"{szam} ");
|
||||||
|
|
||||||
|
}
|
||||||
|
sw.WriteLine();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("A megadott heti lottószámok:");
|
||||||
|
for (int g = 0; g < lottoszamok.GetLength(1); ++g)
|
||||||
|
{
|
||||||
|
Console.WriteLine(lottoszamok[felhszam - 1, g]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
sr.Close();
|
||||||
|
fs.Close();
|
||||||
|
|
||||||
|
|
||||||
|
//5. feladat
|
||||||
|
bool van = false;
|
||||||
|
int[] kihuzottak = { };
|
||||||
|
|
||||||
|
for (int i = 0; i < lottoszamok.GetLength(0); ++i)
|
||||||
|
{
|
||||||
|
for (int j = 0; j < lottoszamok.GetLength(1); ++j)
|
||||||
|
{
|
||||||
|
int szam_1 = lottoszamok[i, j];
|
||||||
|
bool nincsbenne = !kihuzottak.Contains(szam_1);
|
||||||
|
if (nincsbenne)
|
||||||
|
{
|
||||||
|
kihuzottak = kihuzottak.Append(szam_1).ToArray();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int g = 1; g < 91; ++g)
|
||||||
|
{
|
||||||
|
if (!kihuzottak.Contains(g))
|
||||||
|
{
|
||||||
|
van = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (van)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Van");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.WriteLine("Nincs");
|
||||||
|
}
|
||||||
|
|
||||||
|
//6.feladat
|
||||||
|
Console.WriteLine($"A páratlanok száma: {paratlandb}");
|
||||||
|
|
||||||
|
|
||||||
|
//7. feladat
|
||||||
|
|
||||||
|
|
||||||
|
sw.WriteLine(szamok.ToString());
|
||||||
|
sw.Close();
|
||||||
|
fs_2.Close();
|
||||||
|
|
||||||
|
//8. feladat
|
||||||
|
|
||||||
|
//9.feladat
|
||||||
|
int[] primek = { };
|
||||||
|
for (int i = 2; i <91; ++i)
|
||||||
|
{
|
||||||
|
if (!primek.Contains(i))
|
||||||
|
{
|
||||||
|
primek = primek.Append(i).ToArray();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("A prímszámok amiket nem tartalmaz: ");
|
||||||
|
for (int g = 1; g < 91; ++g)
|
||||||
|
{
|
||||||
|
if (!primek.Contains(g))
|
||||||
|
{
|
||||||
|
Console.WriteLine(g);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Feladat1();
|
||||||
|
Console.ReadLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
36
20230913_doga/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
36
20230913_doga/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("beff2f03-9252-429d-a6c2-e7fd64d23145")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
BIN
20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
BIN
20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
BIN
20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
BIN
20230913_doga/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
7f4b213b428f4c013f19137338418ee1f5525793
|
|
@ -0,0 +1,7 @@
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
BIN
20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
BIN
20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
BIN
20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
BIN
20230913_doga/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
Binary file not shown.
BIN
20230913_doga/DolgozatA.pdf
Normal file
BIN
20230913_doga/DolgozatA.pdf
Normal file
Binary file not shown.
BIN
20230913_doga/DolgozatB.pdf
Normal file
BIN
20230913_doga/DolgozatB.pdf
Normal file
Binary file not shown.
52
20230913_doga/lotto52ki.txt
Normal file
52
20230913_doga/lotto52ki.txt
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
37 42 44 61 62
|
||||||
|
18 42 54 83 89
|
||||||
|
5 12 31 53 60
|
||||||
|
1 28 47 56 70
|
||||||
|
54 56 57 59 71
|
||||||
|
7 21 33 39 86
|
||||||
|
21 29 37 48 68
|
||||||
|
10 21 29 40 87
|
||||||
|
13 33 73 77 78
|
||||||
|
2 23 65 71 84
|
||||||
|
3 21 28 30 33
|
||||||
|
23 31 42 73 85
|
||||||
|
4 23 42 61 64
|
||||||
|
17 60 66 71 85
|
||||||
|
12 60 66 67 72
|
||||||
|
46 50 58 62 76
|
||||||
|
20 32 43 65 73
|
||||||
|
55 56 58 61 71
|
||||||
|
18 38 41 67 89
|
||||||
|
32 41 59 66 79
|
||||||
|
25 35 37 74 86
|
||||||
|
1 45 60 61 82
|
||||||
|
7 20 35 58 83
|
||||||
|
7 37 40 46 51
|
||||||
|
2 6 47 74 80
|
||||||
|
1 5 22 44 88
|
||||||
|
23 33 34 71 89
|
||||||
|
4 56 74 77 89
|
||||||
|
17 18 51 52 75
|
||||||
|
7 29 30 77 80
|
||||||
|
17 18 28 35 90
|
||||||
|
6 24 25 53 79
|
||||||
|
7 12 18 38 90
|
||||||
|
25 28 45 55 74
|
||||||
|
10 29 60 74 86
|
||||||
|
7 24 25 50 76
|
||||||
|
20 40 52 54 90
|
||||||
|
16 30 81 83 87
|
||||||
|
20 22 23 50 67
|
||||||
|
59 68 75 80 85
|
||||||
|
32 45 55 70 78
|
||||||
|
13 40 55 56 76
|
||||||
|
3 14 24 73 83
|
||||||
|
23 25 28 66 76
|
||||||
|
24 33 34 39 54
|
||||||
|
12 28 34 61 70
|
||||||
|
1 4 8 69 74
|
||||||
|
4 15 46 49 59
|
||||||
|
24 31 67 71 73
|
||||||
|
12 26 36 46 49
|
||||||
|
9 20 21 59 68
|
||||||
|
System.Int32[]
|
51
20230913_doga/lottosz.txt
Normal file
51
20230913_doga/lottosz.txt
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
37 42 44 61 62
|
||||||
|
18 42 54 83 89
|
||||||
|
5 12 31 53 60
|
||||||
|
1 28 47 56 70
|
||||||
|
54 56 57 59 71
|
||||||
|
7 21 33 39 86
|
||||||
|
21 29 37 48 68
|
||||||
|
10 21 29 40 87
|
||||||
|
13 33 73 77 78
|
||||||
|
2 23 65 71 84
|
||||||
|
3 21 28 30 33
|
||||||
|
23 31 42 73 85
|
||||||
|
4 23 42 61 64
|
||||||
|
17 60 66 71 85
|
||||||
|
12 60 66 67 72
|
||||||
|
46 50 58 62 76
|
||||||
|
20 32 43 65 73
|
||||||
|
55 56 58 61 71
|
||||||
|
18 38 41 67 89
|
||||||
|
32 41 59 66 79
|
||||||
|
25 35 37 74 86
|
||||||
|
1 45 60 61 82
|
||||||
|
7 20 35 58 83
|
||||||
|
7 37 40 46 51
|
||||||
|
2 6 47 74 80
|
||||||
|
1 5 22 44 88
|
||||||
|
23 33 34 71 89
|
||||||
|
4 56 74 77 89
|
||||||
|
17 18 51 52 75
|
||||||
|
7 29 30 77 80
|
||||||
|
17 18 28 35 90
|
||||||
|
6 24 25 53 79
|
||||||
|
7 12 18 38 90
|
||||||
|
25 28 45 55 74
|
||||||
|
10 29 60 74 86
|
||||||
|
7 24 25 50 76
|
||||||
|
20 40 52 54 90
|
||||||
|
16 30 81 83 87
|
||||||
|
20 22 23 50 67
|
||||||
|
59 68 75 80 85
|
||||||
|
32 45 55 70 78
|
||||||
|
13 40 55 56 76
|
||||||
|
3 14 24 73 83
|
||||||
|
23 25 28 66 76
|
||||||
|
24 33 34 39 54
|
||||||
|
12 28 34 61 70
|
||||||
|
1 4 8 69 74
|
||||||
|
4 15 46 49 59
|
||||||
|
24 31 67 71 73
|
||||||
|
12 26 36 46 49
|
||||||
|
9 20 21 59 68
|
BIN
20230920/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
BIN
20230920/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
Binary file not shown.
6
20230920/ConsoleApp1/App.config
Normal file
6
20230920/ConsoleApp1/App.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
53
20230920/ConsoleApp1/ConsoleApp1.csproj
Normal file
53
20230920/ConsoleApp1/ConsoleApp1.csproj
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{6DC513A5-2241-40C2-82DD-362B081D4D83}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
25
20230920/ConsoleApp1/ConsoleApp1.sln
Normal file
25
20230920/ConsoleApp1/ConsoleApp1.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.33529.622
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{6DC513A5-2241-40C2-82DD-362B081D4D83}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {85585721-24A8-497B-8D0D-B57560614C3B}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
15
20230920/ConsoleApp1/Program.cs
Normal file
15
20230920/ConsoleApp1/Program.cs
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ConsoleApp1
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
36
20230920/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
36
20230920/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("6dc513a5-2241-40c2-82dd-362b081d4d83")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -0,0 +1,4 @@
|
||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
Binary file not shown.
BIN
20230920/ConsoleApp2/.vs/ConsoleApp2/v16/.suo
Normal file
BIN
20230920/ConsoleApp2/.vs/ConsoleApp2/v16/.suo
Normal file
Binary file not shown.
6
20230920/ConsoleApp2/App.config
Normal file
6
20230920/ConsoleApp2/App.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
53
20230920/ConsoleApp2/ConsoleApp2.csproj
Normal file
53
20230920/ConsoleApp2/ConsoleApp2.csproj
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{657D5BEA-6DAF-4340-BF93-DA334436BA63}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>ConsoleApp2</RootNamespace>
|
||||||
|
<AssemblyName>ConsoleApp2</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
25
20230920/ConsoleApp2/ConsoleApp2.sln
Normal file
25
20230920/ConsoleApp2/ConsoleApp2.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.33529.622
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{657D5BEA-6DAF-4340-BF93-DA334436BA63}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {0B023ED5-0D1A-4DD3-B3C7-D4FD182C5F63}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
69
20230920/ConsoleApp2/Program.cs
Normal file
69
20230920/ConsoleApp2/Program.cs
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Collections;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace ConsoleApp2
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
public static class MyData
|
||||||
|
{
|
||||||
|
public static ArrayList csaladnev = new ArrayList();
|
||||||
|
public static ArrayList keresztnev = new ArrayList();
|
||||||
|
public static ArrayList magassag = new ArrayList();
|
||||||
|
public static ArrayList tomeg = new ArrayList();
|
||||||
|
public static ArrayList nem = new ArrayList();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Feladat1()
|
||||||
|
{
|
||||||
|
FileStream fs = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\tanulók.txt", FileMode.Open, FileAccess.Read);
|
||||||
|
StreamReader sr = new StreamReader(fs);
|
||||||
|
string sor = sr.ReadLine();
|
||||||
|
while (sor != null)
|
||||||
|
{
|
||||||
|
string[] temp = sor.Split(';');
|
||||||
|
MyData.csaladnev.Add(temp[0]);
|
||||||
|
MyData.keresztnev.Add(temp[1]);
|
||||||
|
MyData.magassag.Add(Convert.ToByte(temp[2]));
|
||||||
|
MyData.tomeg.Add(Convert.ToDouble(temp[3]));
|
||||||
|
MyData.nem.Add(temp[4]);
|
||||||
|
sor = sr.ReadLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
sr.Close();
|
||||||
|
fs.Close();
|
||||||
|
|
||||||
|
foreach (string str in MyData.csaladnev)
|
||||||
|
{
|
||||||
|
Console.WriteLine(str);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (string str in MyData.keresztnev)
|
||||||
|
{
|
||||||
|
Console.WriteLine(str);
|
||||||
|
}
|
||||||
|
foreach (string str in MyData.magassag)
|
||||||
|
{
|
||||||
|
Console.WriteLine(str);
|
||||||
|
}
|
||||||
|
foreach (string str in MyData.tomeg)
|
||||||
|
{
|
||||||
|
Console.WriteLine(str);
|
||||||
|
}
|
||||||
|
foreach (string str in MyData.nem)
|
||||||
|
{
|
||||||
|
Console.WriteLine(str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Feladat1();
|
||||||
|
Console.ReadLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
36
20230920/ConsoleApp2/Properties/AssemblyInfo.cs
Normal file
36
20230920/ConsoleApp2/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("ConsoleApp2")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("ConsoleApp2")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("657d5bea-6daf-4340-bf93-da334436ba63")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
BIN
20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe
Normal file
BIN
20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe
Normal file
Binary file not shown.
6
20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config
Normal file
6
20230920/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
BIN
20230920/ConsoleApp2/bin/Debug/ConsoleApp2.pdb
Normal file
BIN
20230920/ConsoleApp2/bin/Debug/ConsoleApp2.pdb
Normal file
Binary file not shown.
8
20230920/ConsoleApp2/bin/Debug/tanulok2.txt
Normal file
8
20230920/ConsoleApp2/bin/Debug/tanulok2.txt
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Verebes Fruzsina 149 54,4 lány
|
||||||
|
Verebes Fruzsina 149 54,4 lány
|
||||||
|
Verebes Fruzsina 149 54,4 lány
|
||||||
|
Verebes Fruzsina 149 54,4 lány
|
||||||
|
Verebes Fruzsina 149 54,4 lány
|
||||||
|
Verebes Fruzsina 149 54,4 lány
|
||||||
|
Verebes Fruzsina 149 54,4 lány
|
||||||
|
Verebes Fruzsina 149 54,4 lány
|
100
20230920/ConsoleApp2/bin/Debug/tanulók.txt
Normal file
100
20230920/ConsoleApp2/bin/Debug/tanulók.txt
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
Verebes;Fruzsina;149;54,4;lány
|
||||||
|
Borsodi;Attila;167;51,1;fiú
|
||||||
|
Major;Liza;155;52;lány
|
||||||
|
Varga;Ernő;173;46,5;fiú
|
||||||
|
Lendvai;Vera;165;46,7;lány
|
||||||
|
Kulcsár;Antal;172;55,7;fiú
|
||||||
|
Petróczi;Virág;169;41,3;lány
|
||||||
|
Pais;Károly;155;55,5;fiú
|
||||||
|
Horváth;Adél;157;56,5;lány
|
||||||
|
Kiss;Balázs;163;54,5;fiú
|
||||||
|
Orosz;Ingrid;172;41,9;lány
|
||||||
|
Pelikán;Tamás;172;48,9;fiú
|
||||||
|
Zalai;Elvira;147;57,4;lány
|
||||||
|
Papp;Lilla;169;56;lány
|
||||||
|
Huszár;Dorina;151;48,1;lány
|
||||||
|
Kiss;Krisztián;145;59,3;fiú
|
||||||
|
Sipos;Zsolt;173;57,6;fiú
|
||||||
|
Pongrácz;Karina;175;42,1;lány
|
||||||
|
Vissi;Klaudia;166;59;lány
|
||||||
|
Gellén;Bea;188;47,9;lány
|
||||||
|
Ferencz;Ivett;171;51;lány
|
||||||
|
Ujj;Mihály;188;55,6;fiú
|
||||||
|
Kovács;Gergely;147;42;fiú
|
||||||
|
Felföldi;Judit;145;52,3;lány
|
||||||
|
Bartal;Zsolt;169;49,9;fiú
|
||||||
|
Simon;Erik;171;46,7;fiú
|
||||||
|
Csiszár;Alexandra;170;52,8;lány
|
||||||
|
Pesti;Milán;188;53,3;fiú
|
||||||
|
Simon;Rita;166;46;lány
|
||||||
|
Somogyi;Dezső;177;46,3;fiú
|
||||||
|
Magyar;Magdolna;150;56,8;lány
|
||||||
|
Gombos;Kinga;149;56,7;lány
|
||||||
|
Egerszegi;Kristóf;162;52,2;fiú
|
||||||
|
Somogyi;Tamás;172;59,7;fiú
|
||||||
|
Varga;Anna;188;58,3;lány
|
||||||
|
Csondor;Anikó;159;45,3;lány
|
||||||
|
Vass;Szabolcs;188;54,2;fiú
|
||||||
|
Szabó;Csilla;163;59,6;lány
|
||||||
|
Pass;Flóra;177;45,6;lány
|
||||||
|
Agg;Judit;145;51,1;lány
|
||||||
|
Gyenese;Oszkár;157;43;fiú
|
||||||
|
Hardi;Boglárka;159;60;lány
|
||||||
|
Kuti;Lehel;163;53,8;fiú
|
||||||
|
Domján;Hermina;165;41,3;lány
|
||||||
|
Tompa;Krisztina;172;51,9;lány
|
||||||
|
Radics;Betti;171;42,9;lány
|
||||||
|
Balla;Ibolya;180;43;lány
|
||||||
|
Csontos;Janka;151;56,2;lány
|
||||||
|
Radics;Zsuzsa;159;46,4;lány
|
||||||
|
Vajda;Klára;172;41,9;lány
|
||||||
|
Simon;Marcell;171;46,6;fiú
|
||||||
|
Salamon;Laura;162;48,3;lány
|
||||||
|
Bakony;Ilona;145;46,7;lány
|
||||||
|
Hantos;Bence;147;59;fiú
|
||||||
|
Kovács;Erika;167;59,6;lány
|
||||||
|
Csiszár;Bella;168;48,6;lány
|
||||||
|
Simon;Dorina;169;46,3;lány
|
||||||
|
Bicsák;Hilda;173;44;lány
|
||||||
|
Varga;Rozália;156;44,1;lány
|
||||||
|
Lengyel;Viktor;188;53,3;fiú
|
||||||
|
Molnár;Zsombor;172;48,8;fiú
|
||||||
|
Hajba;Soma;178;48,8;fiú
|
||||||
|
Bocskor;Henrik;154;54,5;fiú
|
||||||
|
Hajdu;Szilvia;157;47,2;lány
|
||||||
|
Csalló;Aliz;159;53;lány
|
||||||
|
Kelemen;Gergő;163;44,9;fiú
|
||||||
|
Kaczor;Jenő;167;44,5;fiú
|
||||||
|
Bujtor;Erzsébet;167;52,1;lány
|
||||||
|
Gombos;Olivér;168;42,5;fiú
|
||||||
|
Varga;Cili;172;49,7;lány
|
||||||
|
Gulyás;Katalin;171;58,2;lány
|
||||||
|
Vass;Vera;155;46;lány
|
||||||
|
Salamon;András;177;55,9;fiú
|
||||||
|
Elekes;Elza;177;48,2;lány
|
||||||
|
Nagy;Melinda;145;46,5;lány
|
||||||
|
Kovács;Vivien;160;58,5;lány
|
||||||
|
Kaszás;Ferenc;149;53;fiú
|
||||||
|
Balogh;Borbála;166;52,9;lány
|
||||||
|
Horváth;Barbara;153;49,1;lány
|
||||||
|
Dobos;Vilma;180;42,9;lány
|
||||||
|
Nagy;Miklós;156;51,7;fiú
|
||||||
|
Kovács;Ambrus;173;54,2;fiú
|
||||||
|
Paksa;Csilla;141;58,4;lány
|
||||||
|
Bende;Natália;145;56,9;lány
|
||||||
|
Czigány;Judit;161;41,4;lány
|
||||||
|
Simon;Edina;167;51,3;lány
|
||||||
|
Monok;Gabriella;168;58,4;lány
|
||||||
|
Jakab;Etelka;169;49,2;lány
|
||||||
|
Vig;Viola;159;53,9;lány
|
||||||
|
Szegleti;Tamás;160;50,5;fiú
|
||||||
|
Pataki;Viktória;149;50,8;lány
|
||||||
|
Vass;Ildikó;171;49,8;lány
|
||||||
|
Farsang;Jakab;168;47,7;fiú
|
||||||
|
Vajda;István;163;48,7;fiú
|
||||||
|
Marosvári;Krisztina;162;46,1;lány
|
||||||
|
Horváth;Kamilla;159;42,1;lány
|
||||||
|
Koller;Tamás;171;45,6;fiú
|
||||||
|
Kocsis;Tamara;170;59,6;lány
|
||||||
|
Molnár;Vera;155;42,2;lány
|
||||||
|
Hegyi;Csaba;152;48,4;fiú
|
|
@ -0,0 +1,4 @@
|
||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
7f4b213b428f4c013f19137338418ee1f5525793
|
|
@ -0,0 +1,7 @@
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.exe.config
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.pdb
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.pdb
|
BIN
20230920/ConsoleApp2/obj/Debug/ConsoleApp2.exe
Normal file
BIN
20230920/ConsoleApp2/obj/Debug/ConsoleApp2.exe
Normal file
Binary file not shown.
BIN
20230920/ConsoleApp2/obj/Debug/ConsoleApp2.pdb
Normal file
BIN
20230920/ConsoleApp2/obj/Debug/ConsoleApp2.pdb
Normal file
Binary file not shown.
Binary file not shown.
BIN
20231011/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
BIN
20231011/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
Binary file not shown.
6
20231011/ConsoleApp1/App.config
Normal file
6
20231011/ConsoleApp1/App.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
53
20231011/ConsoleApp1/ConsoleApp1.csproj
Normal file
53
20231011/ConsoleApp1/ConsoleApp1.csproj
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{37CB7692-799A-49D7-9365-3F1F7A29F4A2}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
25
20231011/ConsoleApp1/ConsoleApp1.sln
Normal file
25
20231011/ConsoleApp1/ConsoleApp1.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.33529.622
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{37CB7692-799A-49D7-9365-3F1F7A29F4A2}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {74441948-646F-4654-A6E8-C42946C62E66}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
45
20231011/ConsoleApp1/Program.cs
Normal file
45
20231011/ConsoleApp1/Program.cs
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ConsoleApp1
|
||||||
|
{
|
||||||
|
abstract class Jarmu
|
||||||
|
{
|
||||||
|
public string Marka { get; set; }
|
||||||
|
public int Ev { get; set; }
|
||||||
|
public abstract void Vezeto();
|
||||||
|
}
|
||||||
|
|
||||||
|
class Auto : Jarmu
|
||||||
|
{
|
||||||
|
public int loero { get; set; }
|
||||||
|
|
||||||
|
public override void Vezeto()
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Az autó vezetés: {Marka}, Ev: {Ev}, loero: {loero}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Kerekpar : Jarmu
|
||||||
|
{
|
||||||
|
public int Sebesseg { get; set; }
|
||||||
|
public override void Vezeto()
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Kerékpározás: {Marka}, Ev: {Ev}, Sebesseg: {Sebesseg}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Auto auto1 = new Auto { Marka = "Suzuki", Ev = 2002, loero = 997 };
|
||||||
|
auto1.Vezeto();
|
||||||
|
Kerekpar kero = new Kerekpar { Marka = "Csepel", Ev = 2020, Sebesseg = 5 };
|
||||||
|
kero.Vezeto();
|
||||||
|
Console.ReadLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
36
20231011/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
36
20231011/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("37cb7692-799a-49d7-9365-3f1f7a29f4a2")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
BIN
20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
BIN
20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
6
20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config
Normal file
6
20231011/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
BIN
20231011/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
BIN
20231011/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
7f4b213b428f4c013f19137338418ee1f5525793
|
|
@ -0,0 +1,7 @@
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
BIN
20231011/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
BIN
20231011/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
BIN
20231011/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
BIN
20231011/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
Binary file not shown.
BIN
20231018/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
BIN
20231018/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
Binary file not shown.
6
20231018/ConsoleApp1/App.config
Normal file
6
20231018/ConsoleApp1/App.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
53
20231018/ConsoleApp1/ConsoleApp1.csproj
Normal file
53
20231018/ConsoleApp1/ConsoleApp1.csproj
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
25
20231018/ConsoleApp1/ConsoleApp1.sln
Normal file
25
20231018/ConsoleApp1/ConsoleApp1.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.33529.622
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {ED5FDD19-880A-41F5-84D7-4C554147E0E4}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
37
20231018/ConsoleApp1/Program.cs
Normal file
37
20231018/ConsoleApp1/Program.cs
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ConsoleApp1
|
||||||
|
{
|
||||||
|
class Osztaly
|
||||||
|
{
|
||||||
|
private static int peldanyokszama = 0;
|
||||||
|
public Osztaly()
|
||||||
|
{
|
||||||
|
peldanyokszama++;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int Peldanyszam()
|
||||||
|
{
|
||||||
|
return peldanyokszama;
|
||||||
|
}
|
||||||
|
~Osztaly()
|
||||||
|
{
|
||||||
|
Console.WriteLine(Peldanyszam());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Osztaly objektum = new Osztaly();
|
||||||
|
Console.WriteLine(Osztaly.Peldanyszam());
|
||||||
|
Osztaly obj = new Osztaly();
|
||||||
|
Osztaly obj2 = new Osztaly();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
36
20231018/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
36
20231018/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("c3708b4f-6b02-49fa-8d23-ee80f619caa2")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
BIN
20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
BIN
20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
6
20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config
Normal file
6
20231018/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
BIN
20231018/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
BIN
20231018/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
7f4b213b428f4c013f19137338418ee1f5525793
|
|
@ -0,0 +1,7 @@
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
BIN
20231018/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
BIN
20231018/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
BIN
20231018/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
BIN
20231018/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
Binary file not shown.
BIN
20231018/ConsoleApp2/.vs/ConsoleApp2/v16/.suo
Normal file
BIN
20231018/ConsoleApp2/.vs/ConsoleApp2/v16/.suo
Normal file
Binary file not shown.
6
20231018/ConsoleApp2/App.config
Normal file
6
20231018/ConsoleApp2/App.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
53
20231018/ConsoleApp2/ConsoleApp2.csproj
Normal file
53
20231018/ConsoleApp2/ConsoleApp2.csproj
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{2EFD125E-5061-411B-8CFA-ACC21FA5265D}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>ConsoleApp2</RootNamespace>
|
||||||
|
<AssemblyName>ConsoleApp2</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
25
20231018/ConsoleApp2/ConsoleApp2.sln
Normal file
25
20231018/ConsoleApp2/ConsoleApp2.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.33529.622
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{2EFD125E-5061-411B-8CFA-ACC21FA5265D}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {05B69EA5-EF15-465D-9054-21CF1635B5F4}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
39
20231018/ConsoleApp2/Program.cs
Normal file
39
20231018/ConsoleApp2/Program.cs
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ConsoleApp2
|
||||||
|
{
|
||||||
|
public static class Intkiterjesztesek
|
||||||
|
{
|
||||||
|
public static int Factorial(this int szam)
|
||||||
|
{
|
||||||
|
if (szam < 0) {
|
||||||
|
throw new ArgumentException("A negatív számoknak nincs faktoriálisa");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (szam == 0 || szam == 1)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int result = 1;
|
||||||
|
for (int i = 2; i <= szam; ++i) {
|
||||||
|
result *= i;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
int szam = 5;
|
||||||
|
int factorial = szam.Factorial();
|
||||||
|
Console.WriteLine($"{szam}! = {factorial}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
36
20231018/ConsoleApp2/Properties/AssemblyInfo.cs
Normal file
36
20231018/ConsoleApp2/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("ConsoleApp2")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("ConsoleApp2")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("2efd125e-5061-411b-8cfa-acc21fa5265d")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
BIN
20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe
Normal file
BIN
20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe
Normal file
Binary file not shown.
6
20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config
Normal file
6
20231018/ConsoleApp2/bin/Debug/ConsoleApp2.exe.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
BIN
20231018/ConsoleApp2/bin/Debug/ConsoleApp2.pdb
Normal file
BIN
20231018/ConsoleApp2/bin/Debug/ConsoleApp2.pdb
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
7f4b213b428f4c013f19137338418ee1f5525793
|
|
@ -0,0 +1,7 @@
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.exe.config
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.pdb
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.exe
|
||||||
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.pdb
|
BIN
20231018/ConsoleApp2/obj/Debug/ConsoleApp2.exe
Normal file
BIN
20231018/ConsoleApp2/obj/Debug/ConsoleApp2.exe
Normal file
Binary file not shown.
BIN
20231018/ConsoleApp2/obj/Debug/ConsoleApp2.pdb
Normal file
BIN
20231018/ConsoleApp2/obj/Debug/ConsoleApp2.pdb
Normal file
Binary file not shown.
Binary file not shown.
48
20231025/orai.txt
Normal file
48
20231025/orai.txt
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
public static típus függénynév(this típus név, tov.paraméterek){
|
||||||
|
függvénytörzs;
|
||||||
|
};
|
||||||
|
Az így defininált függvény
|
||||||
|
|
||||||
|
|
||||||
|
public static class Intkiterjesztesek
|
||||||
|
{
|
||||||
|
public static int Factorial(this int szam)
|
||||||
|
{
|
||||||
|
if (szam < 0) {
|
||||||
|
throw new ArgumentException("A negatív számoknak nincs faktoriálisa");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (szam == 0 || szam == 1)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int result = 1;
|
||||||
|
for (int i = 2; i <= szam; ++i) {
|
||||||
|
result *= i;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
int szam = 5;
|
||||||
|
int factorial = szam.Factorial();
|
||||||
|
Console.WriteLine($"{szam}! = {factorial}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
A this kulcsszó használatával a függvénykiterjesztésekben az objektum, amelyre alkalmazni szeretnénk a kiterjesztett metódust, paraméterként jut át a metódusnak.
|
||||||
|
Ez a példa egy egyszerű függvénykiterjesztés az int típushoz, amely a szám faktoriálisát számítja ki.
|
||||||
|
|
||||||
|
A throw kulcsszót a hiba vagy kivétel dobása céljából használhatunk.
|
||||||
|
Amikor egy kivételt dobunk akkor valamilyen előre definiált kivételosztály egy példányát kaphatjuk vissza, vagy saját magunk által definiált kivételosztály.
|
||||||
|
|
||||||
|
A throw tehát lehetővé teszi számunkra, hogy megállítsuk a program futását és jelezzük, hogy valamilyen probléma vagy kivlételes helyzet áll fennm amely kezelést igényel.
|
BIN
20231115/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
BIN
20231115/ConsoleApp1/.vs/ConsoleApp1/v16/.suo
Normal file
Binary file not shown.
6
20231115/ConsoleApp1/App.config
Normal file
6
20231115/ConsoleApp1/App.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
53
20231115/ConsoleApp1/ConsoleApp1.csproj
Normal file
53
20231115/ConsoleApp1/ConsoleApp1.csproj
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{F1939277-923D-4841-B3CD-C9C3B4FFC17B}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
25
20231115/ConsoleApp1/ConsoleApp1.sln
Normal file
25
20231115/ConsoleApp1/ConsoleApp1.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.33529.622
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{F1939277-923D-4841-B3CD-C9C3B4FFC17B}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {4C37CA09-2E20-4F4F-8F81-601E005623D1}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user