Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //si vogliono gestire le auto che entrano del parcheggio
- //menu 1)entra 2)n auto prsenti 3)info auto
- //auto: targa, data, ora
- //parcheggio: nome, auto
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace po_es_12
- {
- class Program
- {
- static void Main(string[] args)
- {
- int scelta;
- Parcheggio parcheggio = new Parcheggio(AggiungiDati.InserisciNomeParcheggio());
- do
- {
- Console.Clear();
- Console.WriteLine("1)Entra\n2)Auto Presenti\n3)Info auto");
- scelta = Convert.ToInt32(Console.ReadLine());
- switch (scelta)
- {
- case 1:
- parcheggio.EntraAuto(new Automobili(AggiungiDati.InserisciTarga(), DateTime.Now.ToString()));
- break;
- case 2:
- parcheggio.NumeroAuto();
- break;
- case 3:
- parcheggio.InfoAutoP();
- break;
- }
- } while (scelta != 0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement