I want to test my program which is structured this way:
// in main
do {
printf("insert move \n");
fgets(move, 7, stdin);
// stuff
} while (/* condition */);
Basically it has a loop where it reads the user input and do stuff...
I want my test to pass to this loop a set of n strings.
how can i do?
Aucun commentaire:
Enregistrer un commentaire