here is the code. i am using a c compiler provided by the Code Blocks program.
Code:
tensecomp = strncmp (past, tense, 2);
verbcount = count;
strncpy (filename2, username, length);
strcat (filename2, "pasttenseverbs.txt");
strncpy (filename5, username, length);
strcat (filename5, "pronounp.txt");
if (tensecomp ==0){
outfile = fopen (filename5, "a");
for (counter =0; answerfuture != 'n'; counter=counter +1){
printf ("\n\nFor which pronoun did you learn past tense?");
printf (" You may answer \ni for I\nyouf for you female\nyoum for you male\nhe for he\n");
printf ("she for she\ntheyf for they female\ntheym for they males\nyoupg for you plural girls\nyoupb for you plural boys\n");
scanf ("%s", & shemhagufp[counter]);
comparison_vuv_f = strcmp ("theyf", shemhagufp[counter]);
comparison_vuv_m = strcmp ("theym", shemhagufp[counter]);
comparison_he_past = strcmp ("he", shemhagufp[counter]);
comparison_she_past = strcmp ("she", shemhagufp [counter]);
comparison_i_past = strcmp ("i", shemhagufp [counter]);
if ((comparison_vuv_f==0) || (comparison_vuv_m ==0)|| (comparison_he_past ==0) || (comparison_she_past==0) || (comparison_i_past ==0) ){
printf ("Did you teach the VUV HAMEHAPEICH with this SHEM HAGUF ?\n Type y for yes and n for no.");
scanf (" %c", &vuvhamehapeich);
if (vuvhamehapeich=='y')
strcat (shemhagufp[counter], "and");
printf ("%s\n", shemhagufp[counter]);
}
fprintf (outfile, "%s ", shemhagufp[counter]);
printf ("\ndo you want to enter another shemhaguf?");
printf ("\nenter y for yes and n for no.\n Use lowercase only.\n");
scanf (" %c", &answerfuture);
}
fclose (outfile);
}
THANKS!