Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
else if(random(20) == 7)
{
first = time(NULL);
printf(" The Highest Mountain Peak In The World :? ");
printf("\n\n A) K2 \t\t B) ROCKY \n C) NEGHY \t D) HIMALAYA ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "d") == 0) || (strcmpi(dummy, "himalaya") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> D / HIMALAYA ");
flag = 0;
}
}
else if(random(20) == 8)
{
first = time(NULL);
printf(" My Favourite Movie :? ");
printf("\n\n A) TITANIC \t\t B) TERMINATOR - 2 \n C) MASK \t\t D) RAMBO ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "a") == 0) || (strcmpi(dummy, "titanic") == 0) )
{