2023-02-06 13:51:53 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MeccsDogaObject
|
|
|
|
|
{
|
|
|
|
|
class Meccs
|
|
|
|
|
{
|
|
|
|
|
public int fordulo;
|
|
|
|
|
public int hazaigol;
|
|
|
|
|
public int vendeggol;
|
|
|
|
|
public string hazaicsapat;
|
|
|
|
|
public string vendegcsapat;
|
2023-02-13 13:30:16 +00:00
|
|
|
|
//private bool este;
|
|
|
|
|
|
|
|
|
|
public Meccs()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Az üres konstruktor törzse.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Meccs(string adatsor)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("A string paraméteres konstruktor törzse.");
|
|
|
|
|
string[] t = adatsor.Split(' ');
|
|
|
|
|
fordulo = int.Parse(t[0]);
|
|
|
|
|
hazaigol = int.Parse(t[1]);
|
|
|
|
|
vendeggol = int.Parse(t[2]);
|
|
|
|
|
hazaicsapat = t[3];
|
|
|
|
|
vendegcsapat = t[4];
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-06 13:51:53 +00:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|