first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<RootNamespace>_2023._04._25</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace _2023._04._25
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
int oszto = 0;
|
||||
System.Console.WriteLine(10/oszto);
|
||||
}
|
||||
|
||||
catch (DivideByZeroException ar)
|
||||
{
|
||||
System.Console.WriteLine(ar.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v7.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v7.0": {
|
||||
"2023. 04. 25/1.0.0": {
|
||||
"runtime": {
|
||||
"2023. 04. 25.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"2023. 04. 25/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net7.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "7.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 04. 25\\2023. 04. 25.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 04. 25\\2023. 04. 25.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"projectName": "2023. 04. 25",
|
||||
"projectPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"packagesPath": "C:\\Users\\Ádi\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 04. 25\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Ádi\\AppData\\Roaming\\NuGet\\NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net7.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Ádi\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\Ádi\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
|
||||
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("2023. 04. 25")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("2023. 04. 25")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("2023. 04. 25")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
0b7d1d7eafc9ce761538b0b6304c854bb036bc32
|
||||
@@ -0,0 +1,11 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net7.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = _2023._04._25
|
||||
build_property.ProjectDir = e:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
5d2ec81f481a0768c27241c6a7e03451d373a5e2
|
||||
@@ -0,0 +1,15 @@
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.exe
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.deps.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.runtimeconfig.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.csproj.AssemblyReference.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.AssemblyInfoInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.AssemblyInfo.cs
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.csproj.CoreCompileInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\refint\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.genruntimeconfig.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 04. 25\obj\Debug\net7.0\ref\2023. 04. 25.dll
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
f7518b34dc7533b10dd5a7341a3f66b7469a6f7e
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net7.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net7.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\Ádi\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"projectName": "2023. 04. 25",
|
||||
"projectPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"packagesPath": "C:\\Users\\Ádi\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 04. 25\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Ádi\\AppData\\Roaming\\NuGet\\NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net7.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "WL8IxbPb1DXuriJ3qNI5fXoLBbwZLXRxSluFhlZhQ1ahjIBXtARPfS/DKRLKZjrLb2QuiTYyCIMIDyrpBxuuzQ==",
|
||||
"success": true,
|
||||
"projectFilePath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<RootNamespace>_2023._05._02</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,167 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace _2023._05._02
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Pelda1()
|
||||
{
|
||||
try
|
||||
{
|
||||
throw new System.Exception();
|
||||
}
|
||||
|
||||
catch (System.Exception e)
|
||||
{
|
||||
System.Console.WriteLine(e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
static void Pelda2()
|
||||
{
|
||||
int oszto = 0;
|
||||
double hanyados;
|
||||
|
||||
try
|
||||
{
|
||||
hanyados = 10 / oszto;
|
||||
}
|
||||
|
||||
catch (ArithmeticException)
|
||||
{
|
||||
// MessageBox.Show(Convert.ToString(ar));
|
||||
}
|
||||
|
||||
finally
|
||||
{
|
||||
// MessageBox.Show("A program ezen része mindenképpen lefut");
|
||||
}
|
||||
}
|
||||
|
||||
static void Pelda3()
|
||||
{
|
||||
try
|
||||
{
|
||||
string szoveg = "valami szoveg";
|
||||
int szam = Convert.ToInt32(szoveg);
|
||||
System.Console.WriteLine(szam);
|
||||
}
|
||||
|
||||
catch (FormatException ex)
|
||||
{
|
||||
System.Console.WriteLine($"Valami hiba történt {{0}}: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
static void Pelda4()
|
||||
{
|
||||
try
|
||||
{
|
||||
string szoveg = "valami szoveg";
|
||||
int szam = Convert.ToInt32(szoveg);
|
||||
System.Console.WriteLine(szam);
|
||||
}
|
||||
|
||||
catch (Exception ex)
|
||||
{
|
||||
System.Console.WriteLine($"Valami hiba történt {{0}}: {ex.Message}");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
static void Pelda5()
|
||||
{
|
||||
System.Console.WriteLine("Kettővel szorzunk v. 1.0");
|
||||
System.Console.WriteLine("Adjon egy egész páros számot!");
|
||||
|
||||
try
|
||||
{
|
||||
var bevitel = Console.ReadLine();
|
||||
int szam = Convert.ToInt32(bevitel);
|
||||
|
||||
if (szam % 2 != 0)
|
||||
{
|
||||
throw new Exception("A szám nem páros!");
|
||||
}
|
||||
System.Console.WriteLine($"A szorzás eredménye: {szam * 2}");
|
||||
}
|
||||
|
||||
catch (Exception ex)
|
||||
{
|
||||
System.Console.WriteLine("HIBA történt");
|
||||
System.Console.WriteLine(ex.Message);
|
||||
}
|
||||
|
||||
finally
|
||||
{
|
||||
System.Console.WriteLine("Program vége. Nyomjon egy gombot a kilépéshez");
|
||||
}
|
||||
}
|
||||
|
||||
static void Feladat()
|
||||
{
|
||||
int szamlalo_a = 0;
|
||||
int szamlalo_e = 0;
|
||||
int szamlalo_i = 0;
|
||||
int szamlalo_o = 0;
|
||||
int szamlalo_u = 0;
|
||||
|
||||
using (StreamReader sr = new StreamReader(@"E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\Források\szavak.txt"))
|
||||
{
|
||||
string content = sr.ReadToEnd();
|
||||
|
||||
for (int i = 0; i < content.Length; i++)
|
||||
{
|
||||
if(content[i] == 'a')
|
||||
{
|
||||
szamlalo_a++;
|
||||
}
|
||||
|
||||
if(content[i] == 'e')
|
||||
{
|
||||
szamlalo_e++;
|
||||
}
|
||||
|
||||
if(content[i] == 'i')
|
||||
{
|
||||
szamlalo_i++;
|
||||
}
|
||||
|
||||
if(content[i] == 'o')
|
||||
{
|
||||
szamlalo_o++;
|
||||
}
|
||||
|
||||
if(content[i] == 'u')
|
||||
{
|
||||
szamlalo_u++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (File.Exists("eredmenyek.txt"))
|
||||
{
|
||||
using (StreamWriter sw = new StreamWriter("eredmenyek.txt"))
|
||||
{
|
||||
sw.WriteLine($"Az \"a\" karakterek száma: {szamlalo_a}");
|
||||
sw.WriteLine($"Az \"e\" karakterek száma: {szamlalo_e}");
|
||||
sw.WriteLine($"Az \"i\" karakterek száma: {szamlalo_i}");
|
||||
sw.WriteLine($"Az \"o\" karakterek száma: {szamlalo_o}");
|
||||
sw.WriteLine($"Az \"u\" karakterek száma: {szamlalo_u}");
|
||||
}
|
||||
|
||||
System.Console.WriteLine("Sikeres kiírás!");
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
throw new FileNotFoundException("A fájl nem létezik te kutya!");
|
||||
}
|
||||
}
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Feladat();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v7.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v7.0": {
|
||||
"2023. 05. 02/1.0.0": {
|
||||
"runtime": {
|
||||
"2023. 05. 02.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"2023. 05. 02/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net7.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "7.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 02\\2023. 05. 02.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 02\\2023. 05. 02.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 02\\2023. 05. 02.csproj",
|
||||
"projectName": "2023. 05. 02",
|
||||
"projectPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 02\\2023. 05. 02.csproj",
|
||||
"packagesPath": "C:\\Users\\Ádi\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 02\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Ádi\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net7.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Ádi\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\Ádi\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
|
||||
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("2023. 05. 02")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("2023. 05. 02")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("2023. 05. 02")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
0d6241037f073c426cec30ddaa989187bb0876d9
|
||||
@@ -0,0 +1,11 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net7.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = _2023._05._02
|
||||
build_property.ProjectDir = E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
eab0a847ec9f3228b9f7cf05856255e6305b5d47
|
||||
@@ -0,0 +1,15 @@
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\bin\Debug\net7.0\2023. 05. 02.exe
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\bin\Debug\net7.0\2023. 05. 02.deps.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\bin\Debug\net7.0\2023. 05. 02.runtimeconfig.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\bin\Debug\net7.0\2023. 05. 02.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\bin\Debug\net7.0\2023. 05. 02.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\2023. 05. 02.csproj.AssemblyReference.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\2023. 05. 02.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\2023. 05. 02.AssemblyInfoInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\2023. 05. 02.AssemblyInfo.cs
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\2023. 05. 02.csproj.CoreCompileInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\2023. 05. 02.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\refint\2023. 05. 02.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\2023. 05. 02.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\2023. 05. 02.genruntimeconfig.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 02\obj\Debug\net7.0\ref\2023. 05. 02.dll
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
78928027a87e9995676e2e55a98ab03757530538
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net7.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net7.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\Ádi\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 02\\2023. 05. 02.csproj",
|
||||
"projectName": "2023. 05. 02",
|
||||
"projectPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 02\\2023. 05. 02.csproj",
|
||||
"packagesPath": "C:\\Users\\Ádi\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 02\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Ádi\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net7.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "k4Mcv09yZS4I9wulJ22psndZVOAIdQ/qEEOcDXK93qm5D74KhJ6MzmLruW39E68E87szp+62MYu33KlKlHHxWA==",
|
||||
"success": true,
|
||||
"projectFilePath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 02\\2023. 05. 02.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<RootNamespace>_2023._05._16</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
|
||||
namespace _2023._05._16
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Eljaras(int a, int b)
|
||||
{
|
||||
System.Console.WriteLine($"A téglalap területe: {a} * {b} = {a * b}");
|
||||
}
|
||||
|
||||
static int Fuggveny(int szam)
|
||||
{
|
||||
int db = 0;
|
||||
do
|
||||
{
|
||||
szam /= 10;
|
||||
db++;
|
||||
System.Console.WriteLine(szam);
|
||||
}
|
||||
while(szam != 0);
|
||||
return db;
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
System.Console.WriteLine("Kérek egy számot");
|
||||
int szam = Convert.ToInt32(Console.ReadLine());
|
||||
System.Console.WriteLine($"A számjegyek száma: {Fuggveny(szam)} db.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v7.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v7.0": {
|
||||
"2023. 05. 16/1.0.0": {
|
||||
"runtime": {
|
||||
"2023. 05. 16.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"2023. 05. 16/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net7.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "7.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 16\\2023. 05. 16.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 16\\2023. 05. 16.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 16\\2023. 05. 16.csproj",
|
||||
"projectName": "2023. 05. 16",
|
||||
"projectPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 16\\2023. 05. 16.csproj",
|
||||
"packagesPath": "C:\\Users\\Ádi\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 16\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Ádi\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net7.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Ádi\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\Ádi\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
|
||||
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("2023. 05. 16")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("2023. 05. 16")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("2023. 05. 16")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
cfe013ea4554c496775d84e4d88530a5cfc42e3a
|
||||
@@ -0,0 +1,11 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net7.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = _2023._05._16
|
||||
build_property.ProjectDir = E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
377bd9df574b99130a6c57f286f9ddbb754cda71
|
||||
@@ -0,0 +1,15 @@
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\bin\Debug\net7.0\2023. 05. 16.exe
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\bin\Debug\net7.0\2023. 05. 16.deps.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\bin\Debug\net7.0\2023. 05. 16.runtimeconfig.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\bin\Debug\net7.0\2023. 05. 16.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\bin\Debug\net7.0\2023. 05. 16.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\2023. 05. 16.csproj.AssemblyReference.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\2023. 05. 16.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\2023. 05. 16.AssemblyInfoInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\2023. 05. 16.AssemblyInfo.cs
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\2023. 05. 16.csproj.CoreCompileInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\2023. 05. 16.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\refint\2023. 05. 16.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\2023. 05. 16.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\2023. 05. 16.genruntimeconfig.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023. 05. 16\obj\Debug\net7.0\ref\2023. 05. 16.dll
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
8e8089894bdab790fa8a750d7fd7224a24f9ea49
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net7.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net7.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\Ádi\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 16\\2023. 05. 16.csproj",
|
||||
"projectName": "2023. 05. 16",
|
||||
"projectPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 16\\2023. 05. 16.csproj",
|
||||
"packagesPath": "C:\\Users\\Ádi\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 16\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Ádi\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net7.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "NbDqdrc11AMTtiqABqQZoXjCLfuMM96oVMw6reFFddKvMFNG6qeb1LtGTl30J30Gu1vKFZttEstlBZBMFB0Y+Q==",
|
||||
"success": true,
|
||||
"projectFilePath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023. 05. 16\\2023. 05. 16.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<RootNamespace>_2023__05__23</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,111 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace _2023__05__23
|
||||
{
|
||||
class Program
|
||||
{
|
||||
|
||||
static void Osszegzes()
|
||||
{
|
||||
int[] tomb = {8, 9, 5, 4, 1};
|
||||
int n = tomb.Length;
|
||||
int osszeg = 0;
|
||||
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
osszeg += tomb[i];
|
||||
}
|
||||
System.Console.WriteLine($"Összeg: {osszeg}");
|
||||
}
|
||||
|
||||
static void Megszamlalas()
|
||||
{
|
||||
int[] t = {9, 7, 3, 5, 4, 2, 6};
|
||||
int n = t.Length;
|
||||
int db = 0;
|
||||
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
if (t[i] < 5)
|
||||
{
|
||||
db++;
|
||||
}
|
||||
}
|
||||
|
||||
System.Console.WriteLine($"5-nél kisebb számok darabszáma: {db}");
|
||||
}
|
||||
|
||||
static void Eldontes()
|
||||
{
|
||||
int[] t = {9, 7, 3, 5, 4, 2, 5};
|
||||
int n = t.Length;
|
||||
int ker = 5;
|
||||
bool van = false;
|
||||
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
if (t[i] == ker)
|
||||
{
|
||||
van = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
System.Console.WriteLine($"Igaz-e, hogy van 5-ös a tömbben?: {van}");
|
||||
}
|
||||
|
||||
static void Feladat1()
|
||||
{
|
||||
Random rng = new Random();
|
||||
int[] tomb = new int[10];
|
||||
bool van = false;
|
||||
int szam;
|
||||
|
||||
for (int i = 0; i < tomb.Length; i++)
|
||||
{
|
||||
szam = tomb[i] = rng.Next(1, 7);
|
||||
System.Console.WriteLine(szam);
|
||||
}
|
||||
|
||||
foreach (int i in tomb)
|
||||
{
|
||||
if (i == 6)
|
||||
{
|
||||
van = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
System.Console.WriteLine($"Van-e 6-os a tömbben?: {van}");
|
||||
}
|
||||
|
||||
static void Feladat2()
|
||||
{
|
||||
char[] tomb = {'a', 'e', 'i', 'o', 'u'};
|
||||
System.Console.WriteLine("Írj be egy angol szó!");
|
||||
string szo = Console.ReadLine();
|
||||
bool van = false;
|
||||
|
||||
foreach (char i in szo)
|
||||
{
|
||||
if (tomb.Contains(i))
|
||||
{
|
||||
System.Console.WriteLine("Van benne magánhangzó");
|
||||
van = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (van is not true)
|
||||
{
|
||||
System.Console.WriteLine("Nincs benne magánhangzó");
|
||||
}
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Feladat2();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v7.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v7.0": {
|
||||
"2023, 05, 23/1.0.0": {
|
||||
"runtime": {
|
||||
"2023, 05, 23.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"2023, 05, 23/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net7.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "7.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023, 05, 23\\2023, 05, 23.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023, 05, 23\\2023, 05, 23.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023, 05, 23\\2023, 05, 23.csproj",
|
||||
"projectName": "2023, 05, 23",
|
||||
"projectPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023, 05, 23\\2023, 05, 23.csproj",
|
||||
"packagesPath": "C:\\Users\\Ádi\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Gyakorlás\\2023, 05, 23\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\Ádi\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net7.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net7.0": {
|
||||
"targetAlias": "net7.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Ádi\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\Ádi\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
|
||||
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("2023, 05, 23")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("2023, 05, 23")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("2023, 05, 23")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
e1b5a1dc6588e91d023e8c9f4f69bc065ca843a4
|
||||
@@ -0,0 +1,11 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net7.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = _2023__05__23
|
||||
build_property.ProjectDir = E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
10a0a2c6fca7b408749e8b0507fa161ee6ba46c2
|
||||
@@ -0,0 +1,15 @@
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\bin\Debug\net7.0\2023, 05, 23.exe
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\bin\Debug\net7.0\2023, 05, 23.deps.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\bin\Debug\net7.0\2023, 05, 23.runtimeconfig.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\bin\Debug\net7.0\2023, 05, 23.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\bin\Debug\net7.0\2023, 05, 23.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\2023, 05, 23.csproj.AssemblyReference.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\2023, 05, 23.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\2023, 05, 23.AssemblyInfoInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\2023, 05, 23.AssemblyInfo.cs
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\2023, 05, 23.csproj.CoreCompileInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\2023, 05, 23.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\refint\2023, 05, 23.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\2023, 05, 23.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\2023, 05, 23.genruntimeconfig.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Gyakorlás\2023, 05, 23\obj\Debug\net7.0\ref\2023, 05, 23.dll
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user