Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "c") == 0) || (strcmpi(dummy, "database") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> C / DATABASE");
flag = 0;
}
}
else if(random(20) == 14)
{
first = time(NULL);
printf(" C++ Was Developed By :? ");
printf("\n\n A) BJARNE STROUSTRUP \t\t B) GURJIT \n C) DENNIS RITCHIE \t\t D) KERNINGHAM ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if( (strcmpi(dummy, "a") == 0) || (strcmpi(dummy, "bjarne stroustrup") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;
}
else
{
printf(" WRONG ANSWER______The Answer Is ---> A / BJARNE STROUSTRUP ");