Курсовая работа: Застосування BORLAND C BUILDER для створення ігрових програм
"\n$ $ "
"\n\t $ Choice 3 : PLAY GAME$ "
"\n$ $ "
"\n\t $ Choice 4 : EXIT$ "
"\n$ $ "
"\n\t $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ");
printf("\n\n\nPlease Enter Your Choice : ");
scanf(" %d", &choice);
}
float question()
{
time_t first, second;
char dummy[80];
float ret;
randomize(); // stdlib.h
raj :
{
if(random(20) == 0)// stdlib.h
{
first = time(NULL);
printf(" Who's Programmed [ WHO'LL BE A MILLIONAIRE ] :? ");
printf("\n\n A) HARRY \t\t B) GURJIT \n C) ALI \t\t D) MICHAEL ");
scanf(" %[^\n]", dummy);
second = time(NULL);
ret = difftime(second, first);
if((strcmpi(dummy, "b") == 0) || (strcmpi(dummy, "gurjit") == 0) )
{
printf(" RIGHT ANSWER ");
flag = 1;