编写一个刷新小时钟的问题
#include "stdio.h"#include "bios.h"
#include "time.h"
showtime(void);
main()
{
clrscr()
printf("The number of hours since midnight is:\n");
showtime();
printf("\n\nPress any key to quit:");
}
showtime()
{
double bios_time;
while(! kbhit()
{bios_time=biostime(O,OL);
gotoxy(42,1);
printf("%.2f",bios_time/CLK_TCK/3600);
}
} 刷新小时钟.cpp
d:\c语言编程\新建文件夹\刷新小时钟.cpp(2) : fatal error C1083: Cannot open include file: 'bios.h': No such file or directory
执行 cl.exe 时出错.
刷新小时钟.exe - 1 error(s), 0 warning(s)