Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. namespace pre_v_1
  2. {
  3. class Program
  4. {
  5. public void stampa_menù()
  6. {
  7. Console.WriteLine("------menù------");
  8. Console.WriteLine("1) crea un magazino");
  9. Console.WriteLine("2) crea una persona");
  10. Console.WriteLine("3) assegna persone ai magazini");
  11. Console.WriteLine("4) modifica persone");
  12. Console.WriteLine("5) modifica magazzini");
  13. Console.WriteLine("6) filtraggio persone e magazzini");
  14. }
  15. public struct magazzino
  16. {
  17. public string nome;
  18. public string descrizione;
  19. public int identificativo;
  20. }
  21. public class array_persone
  22. {
  23. int[] operatori = new int[10];
  24. }
  25. public struct operatore
  26. {
  27. public int identificativo;
  28. public string nome;
  29. public string cognome;
  30. public string data_di_nascita;
  31. public int età;
  32. }
  33. static void Main(string[] args)
  34. {
  35. //inizio
  36. char scelta;
  37. //console
  38. scelta = char.Parse(Console.ReadLine());
  39. switch (scelta)
  40. {
  41. case '1':
  42.  
  43. break;
  44. case '2':
  45.  
  46. break;
  47. case '3':
  48.  
  49. break;
  50. case '4':
  51.  
  52. break;
  53. case '5':
  54.  
  55. break;
  56. case '6':
  57.  
  58. break;
  59. }
  60.  
  61.  
  62.  
  63. //blocco
  64. Console.WriteLine("premi un tasto per continuare");
  65. Console.ReadKey();
  66. }
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement