first commit
This commit is contained in:
Binary file not shown.
@@ -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,42 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace _2023._04._25
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Feladat()
|
||||
{
|
||||
Random rng = new Random();
|
||||
List<int> szamok = new List<int>();
|
||||
int szam;
|
||||
|
||||
for(int i = 0; i < 100; i++)
|
||||
{
|
||||
szam = rng.Next(50, 751);
|
||||
szamok.Add(szam);
|
||||
}
|
||||
|
||||
using(StreamWriter sw1 = new StreamWriter("szamok.txt"))
|
||||
{
|
||||
foreach(int i in szamok)
|
||||
{
|
||||
sw1.WriteLine(i);
|
||||
}
|
||||
}
|
||||
|
||||
using(StreamWriter sw2 = new StreamWriter("statisztika.txt"))
|
||||
{
|
||||
sw2.WriteLine($"A számok összege: {szamok.Sum()}");
|
||||
sw2.WriteLine($"A számok átlaga: {szamok.Average()}");
|
||||
sw2.WriteLine($"A számok minimuma: {szamok.Min()}");
|
||||
sw2.WriteLine($"A számok maximuma: {szamok.Max()}");
|
||||
}
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Feladat();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,63 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Dolgozat\\Kódok\\2023. 04. 25\\2023. 04. 25.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Dolgozat\\Kódok\\2023. 04. 25\\2023. 04. 25.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Dolgozat\\Kódok\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"projectName": "2023. 04. 25",
|
||||
"projectPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Dolgozat\\Kódok\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"packagesPath": "C:\\Users\\Ádi\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Dolgozat\\Kódok\\2023. 04. 25\\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. 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\Dolgozat\Kódok\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,30 @@
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.exe
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.deps.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.runtimeconfig.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.csproj.AssemblyReference.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.AssemblyInfoInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.AssemblyInfo.cs
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.csproj.CoreCompileInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\refint\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.genruntimeconfig.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\2023. 04. 25\obj\Debug\net7.0\ref\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.exe
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.deps.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.runtimeconfig.json
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\bin\Debug\net7.0\2023. 04. 25.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.csproj.AssemblyReference.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.AssemblyInfoInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.AssemblyInfo.cs
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.csproj.CoreCompileInputs.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\refint\2023. 04. 25.dll
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.pdb
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\2023. 04. 25.genruntimeconfig.cache
|
||||
E:\Suli\11.b\Programozás (Tusjak Brigitta)\C#\repos\Dolgozat\Kódok\2023. 04. 25\obj\Debug\net7.0\ref\2023. 04. 25.dll
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
b6703b8151fac2b75d9e94038e25758ad394e6f5
|
||||
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\\Dolgozat\\Kódok\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"projectName": "2023. 04. 25",
|
||||
"projectPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Dolgozat\\Kódok\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"packagesPath": "C:\\Users\\Ádi\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Dolgozat\\Kódok\\2023. 04. 25\\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": "O+V6+o8UW5bCp+eZ1fE16zbBQGUBTsFh72bhH8bkHhzUuzJKvxVUrlCGMEHCC6wyPb1KhXBoSrYL+PL1kS5qLQ==",
|
||||
"success": true,
|
||||
"projectFilePath": "E:\\Suli\\11.b\\Programozás (Tusjak Brigitta)\\C#\\repos\\Dolgozat\\Kódok\\2023. 04. 25\\2023. 04. 25.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
A számok összege: 37268
|
||||
A számok átlaga: 372,68
|
||||
A számok minimuma: 56
|
||||
A számok maximuma: 745
|
||||
@@ -0,0 +1,100 @@
|
||||
534
|
||||
644
|
||||
109
|
||||
595
|
||||
463
|
||||
174
|
||||
65
|
||||
323
|
||||
159
|
||||
426
|
||||
185
|
||||
241
|
||||
266
|
||||
277
|
||||
540
|
||||
108
|
||||
473
|
||||
651
|
||||
104
|
||||
589
|
||||
469
|
||||
708
|
||||
205
|
||||
638
|
||||
144
|
||||
541
|
||||
384
|
||||
229
|
||||
148
|
||||
86
|
||||
79
|
||||
287
|
||||
448
|
||||
458
|
||||
455
|
||||
642
|
||||
148
|
||||
300
|
||||
414
|
||||
324
|
||||
138
|
||||
305
|
||||
101
|
||||
568
|
||||
705
|
||||
89
|
||||
409
|
||||
527
|
||||
490
|
||||
370
|
||||
223
|
||||
622
|
||||
588
|
||||
393
|
||||
111
|
||||
122
|
||||
472
|
||||
294
|
||||
719
|
||||
203
|
||||
723
|
||||
73
|
||||
525
|
||||
101
|
||||
506
|
||||
346
|
||||
137
|
||||
626
|
||||
745
|
||||
525
|
||||
246
|
||||
89
|
||||
257
|
||||
700
|
||||
213
|
||||
121
|
||||
527
|
||||
432
|
||||
313
|
||||
434
|
||||
417
|
||||
285
|
||||
156
|
||||
56
|
||||
713
|
||||
693
|
||||
705
|
||||
351
|
||||
236
|
||||
286
|
||||
618
|
||||
422
|
||||
407
|
||||
269
|
||||
577
|
||||
62
|
||||
693
|
||||
61
|
||||
428
|
||||
712
|
||||
@@ -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.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user