Rimozione variabili inutili
This commit is contained in:
parent
36801822d8
commit
4110767bb2
14
Program.cs
14
Program.cs
@ -2,20 +2,14 @@
|
||||
namespace Rubrica_Miglioria;
|
||||
|
||||
class Program {
|
||||
static void Main(string[] args) {
|
||||
static void Main() {
|
||||
Console.Clear();
|
||||
const int DIMENSIONE_RUBRICA = 100;
|
||||
int scelta = 0;
|
||||
string nome = "";
|
||||
string numeroditelefono;
|
||||
int scelta;
|
||||
bool rubricaNonVuota = false;
|
||||
bool error;
|
||||
int contatore = 0;
|
||||
string ricerca;
|
||||
string[] nomi = new string[DIMENSIONE_RUBRICA];
|
||||
string[] numeriditelefono = new string[DIMENSIONE_RUBRICA];
|
||||
Voce singolavoce = null;
|
||||
Voce[] voci = new Voce[DIMENSIONE_RUBRICA];
|
||||
Rubrica rubrica = new Rubrica(DIMENSIONE_RUBRICA);
|
||||
do {
|
||||
Console.WriteLine("1)Aggiungi nuova voce in rubrica");
|
||||
@ -30,6 +24,9 @@ class Program {
|
||||
Console.WriteLine($"Limite di {DIMENSIONE_RUBRICA} voci nella rubrica raggiunta");
|
||||
}
|
||||
else {
|
||||
string nome;
|
||||
string numeroditelefono;
|
||||
|
||||
do {
|
||||
string? message;
|
||||
error = true;
|
||||
@ -178,7 +175,6 @@ class Program {
|
||||
ritorno = $"Questo {(p_tipologia ? "nome" : "numero di telefono")} esiste già nella rubrica.";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return ritorno;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user