Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
{
first = time(NULL);
printf(" India Is a :? ");
printf("\n\n A) PENNINSULA \t\t B) ISLAND \n C) PLATEAU \t\t D) NONE ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "a") == 0) || (strcmpi(dummy, "penninsula") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> A / PENNINSULA ");
flag = 0;
}
}
else if(random(20) == 19)
{
first = time(NULL);
printf(" Earth's Only Natural Satellite :? ");
printf("\n\n A) SUN \t\t B) PLUTO \n C) JUPITER \t\t D) MOON ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "d") == 0) || (strcmpi(dummy, "moon") == 0) )
{
printf(" RIGHT ANSWER ");