Keep asking

master
= 2016-08-18 00:36:29 +02:00
parent 3b094f76f8
commit 4f1cfb3e46
1 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#define ver "0.6.3"
#define ver "0.6.4"
#include <stdio.h>
#include <string.h>
@ -85,10 +85,15 @@ int main () {
case 5: strcpy(r3, "affettive "); break;
}
strcat(esame, r3);
normalizza(esame, gen);
normalizza(esame, gen);
printf ("%s\n", esame);
printf ("\nVuoi sapere il nome di un altro esame? (s/n)");
scanf ("%s", risposta);
strcpy(risposta, "x");
while ( strcmp (risposta, "s") != 0 && strcmp (risposta, "n") != 0) {
printf ("\nVuoi sapere il nome di un altro esame? (s/n) ");
scanf ("%s", risposta);
}
if (strcmp (risposta, "s") != 0) {
printf ("Allora ciao");
}