static void Main(string[] args)
        {
            for (int j = 0; j < 10; j++)
            {
                firme[j] = 0;
            }
            Masina m1 = new Masina();

            m1.afisare();
            m1.setmodel();
            m1.ConversieLaSir();//CONVERSIE LA SIR
            setf();
            Menu();
            //int y=10;
            //string x = "pititci";
            //Console.WriteLine("Erau odata {0} {1}",y,x);
        }
Example #2
0
        static void Main(string[] args)
        {
            for (int j = 0; j < 10; j++)
            {
                firme[j] = 0;
            }
            Masina m1 = new Masina(), m2 = new Masina();

            m1.afisare();
            string data = Masina.RText();

            string[] lista = data.Split('/');
            int      _firma, _an;
            double   _model, _pret;

            //Console.WriteLine("S-a citit din fisier : " + data);
            _pret  = Convert.ToDouble(lista[4]);
            _model = Convert.ToDouble(lista[0]);
            _firma = Convert.ToInt32(lista[1]);
            _an    = Convert.ToInt32(lista[3]);
            m2     = new Masina(_model, _firma, lista[2], _an, _pret, lista[5], lista[6]);
            Console.WriteLine("La citirea fisierului rezulta :" + m2.ConversieLaSir());
            Menu();
        }