Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> A / TITANIC ");
flag = 0;
}
}
else if(random(20) == 9)
{
first = time(NULL);
printf(" Rabies a Disease Is caused By :? ");
printf("\n\n A) LION \t\t B) TIGER \n C) DOG \t\t D) MONKEY ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "c") == 0) || (strcmpi(dummy, "dog") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> C / DOG ");
flag = 0;
}
}
else if(random(20) == 10)
{