Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
else
{
printf(" WRONG ANSWER______The Answer Is ---> B / GURJIT SINGH ");
flag = 0;
}
}
else if(random(20) == 1)
{
first = time(NULL);
printf(" Which Is The Deepest Ocean :? ");
printf("\n\n A) PACIFIC \t\t B) ATLANTIC \n C) ARCTIC \t\t D) INDIAN ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "a") == 0) || (strcmpi(dummy, "pacific") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> A / PACIFIC ");
flag = 0;
}
}
else if(random(20) == 2)
{
first = time(NULL);
printf(" How Many Continents Are There On This Planet [EARTH] :? ");