Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
{
printf(" WRONG ANSWER______The Answer Is ---> D / 7 ");
flag = 0;
}
}
else if(random(20) == 12)
{
first = time(NULL);
printf(" Tan 45 Degree :? ");
printf("\n\n A) 1/2 \t\t B) 2 \n C) 1 \t\t\t D) 0 ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "c") == 0) || (strcmpi(dummy, "1") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> C / 1 ");
flag = 0;
}
}
else if(random(20) == 13)
{
first = time(NULL);
printf(" Oracle 8i Is A :? ");
printf("\n\n A) LANGUAGE \t\t B) SUBJECT \n C) DATABASE \t\t D) NONE ");