diff --git a/SzimulaciOOP.slnx b/SzimulaciOOP.slnx new file mode 100644 index 0000000..3c658d1 --- /dev/null +++ b/SzimulaciOOP.slnx @@ -0,0 +1,3 @@ + + + diff --git a/SzimulaciOOP/App.config b/SzimulaciOOP/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/SzimulaciOOP/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SzimulaciOOP/Program.cs b/SzimulaciOOP/Program.cs new file mode 100644 index 0000000..2f8710d --- /dev/null +++ b/SzimulaciOOP/Program.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SzimulaciOOP +{ + internal class Program + { + static void Main(string[] args) + { + } + } +} diff --git a/SzimulaciOOP/Properties/AssemblyInfo.cs b/SzimulaciOOP/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..75de812 --- /dev/null +++ b/SzimulaciOOP/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SzimulaciOOP")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SzimulaciOOP")] +[assembly: AssemblyCopyright("Copyright © 2026")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("06316ff2-4bf8-4939-aa6c-2ac720137ae0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SzimulaciOOP/SzimulaciOOP.csproj b/SzimulaciOOP/SzimulaciOOP.csproj new file mode 100644 index 0000000..2c6acc6 --- /dev/null +++ b/SzimulaciOOP/SzimulaciOOP.csproj @@ -0,0 +1,54 @@ + + + + + Debug + AnyCPU + {06316FF2-4BF8-4939-AA6C-2AC720137AE0} + Exe + SzimulaciOOP + SzimulaciOOP + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SzimulaciOOP/auto.cs b/SzimulaciOOP/auto.cs new file mode 100644 index 0000000..897e620 --- /dev/null +++ b/SzimulaciOOP/auto.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.Tracing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SzimulaciOOP +{ + internal class auto + { + + public string nev; + public int soforpenze; + public double fogyasztas; + public double benzin; + public double benzinkapacitas; + + + + + + + + +/* +soforpenze,autofogyasztasa,benzin,benzintankméret(30-200),adotthosszusaguut +*/ + public auto(string nev,double benzinkapacitas) + { + Random random = new Random(); + this.nev = nev; + this.benzinkapacitas = benzinkapacitas; + soforpenze = random.Next(10000,300000); + fogyasztas = random.Next(4,40); + benzin = random.NextDouble(); + soforpenze = random.Next(10000,300000); + + + } + } +}