Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "d") == 0) || (strcmpi(dummy, "7") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> D / 7 ");
flag = 0;
}
}
else if(random(20) == 3)
{
first = time(NULL);
printf(" C/C++ Are Products Of Which American Company :? ");
printf("\n\n A) MICROSOFT \t\t B) IBM \n C) BORLAND \t\t D) NONE ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "c") == 0) || (strcmpi(dummy, "borland") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{