Re: [C++] esercizio strutture
Inviato: 19/09/2018, 16:23
il getchar() da una veloce letta su internet (potrei quindi tranquillamente sbagliarmi) dovrebbe prendere il codice ASCII del carattere.
how about this? volevo fare un return l anche prima ma non so perchè ho scritto a.
- Codice:
int guarda(char a){
int l;
if((a >'0') and (a <= '9')) l=a;
return l;
}
how about this? volevo fare un return l anche prima ma non so perchè ho scritto a.