Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
}
}
else if(random(20) == 15)
{
first = time(NULL);
printf(" Which Lizard Can Change Colors :? ");
printf("\n\n A) WALL \t\t B) MONSTER \n C) CHAMELEON \t\t D) NONE ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "c") == 0) || (strcmpi(dummy, "chameleon") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> C / CHAMELEON ");
flag = 0;
}
}
else if(random(20) == 16)
{
first = time(NULL);
printf(" Mowgli Is a Character Of The Popular Comic :? ");
printf("\n\n A) CASPER \t\t B) JUNGLE BOOK \n C) ANASTITIA \t\t D) ALLADIN ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);