额,我要下了,明天你还没死的话我就来帮你吧
I have not failed completely
clock cpu_just = 0; char answer = 0; printf("是否进入电梯?(y/n):"); scanf(" %c",&answer); if(tolower(answer) == 'y') { cpu_just = clock(); for((clock() - cpu)/CLOCK_PER_SEC < 25); printf("您以进入电梯,请选择要去的楼房:"); /* ... */ } else /* ... */其他的都大同小异,掌握这个就行了,好像也可以用sleep()这个函数,只是我本人不太了解它...