Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> B / JUNGLE BOOK ");
flag = 0;
}
}
else if(random(20) == 17)
{
first = time(NULL);
printf(" Author Of The Jungle Book :? ");
printf("\n\n A) G B SHAW \t\t\t\t B) PREM CHAND \n C) WILLIAM SHAKESPEARE \t\t D) RUDYARD CIPLING ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "d") == 0) || (strcmpi(dummy, "rudyard cipling") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> D / RUDYARD CIPLING ");
flag = 0;
}
}