c语言编译器没有头文件,求一个c语言编译器,bios.h,stdio.h等各种头文件全都要齐全...

定义了一些提供bios服务调用的函数;这个文件很短;我直接贴给你

/* bios.h

Access to bios services.

Copyright (c) Borland International 1987,1988

All Rights Reserved.

*/

#if __STDC__

#define _Cdecl

#else

#define _Cdecl cdecl

#endif

int _Cdecl bioscom(int cmd, char abyte, int port);

int _Cdecl biosdisk(int cmd, int drive, int head, int track, int sector,

int nsects, void *buffer);

int _Cdecl biosequip(void);

int _Cdecl bioskey(int cmd);

int _Cdecl biosmemory(void);

int _Cdecl biosprint(int cmd, int abyte, int port);

long _Cdecl biostime(int cmd, long newtime);

最常用的就是bioskey函数;例如

#include

#include

main()

{

int n = bioskey(0); /*读取一个输入字符*/

printf("you entered:%c", n);

getch();

}

取消

评论