Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
if( (strcmpi(dummy, "b") == 0) || (strcmpi(dummy, "printer") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> B / PRINTER ");
flag = 0;
}
}
else if(random(20) == 6)
{
first = time(NULL);
printf(" World's Longest River :? ");
printf("\n\n A) NILE \t\t B) SMILE \n C) MISSISSIPII \t D) GANGA ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "a") == 0) || (strcmpi(dummy, "nile") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> A / NILE ");
flag = 0;
}