所谓的 C 标准库(C standard library),是指在 ISO C 或者 POSIX 标准中定义的: POSIX is a superset(超集) of the standard C library, and it's important to note that it defers to it. If C and POSIX is ever in conflict, C wins. 1. conio.h conio 是 Console Input/Output (控制台输入输出)
#include <conio.h> int getch(void);// 从控制台得到下一个字符,以ASCII值返回,并不在屏幕显示该字符 int getche(void);// 从控制台得到下一个字符,以ASCII值返回 int kbhit(void);// 判断控制台是否仍有未输入的字符.若有,则返回1,否则返回0 int putch(int);// 将一个整型数以ASCII码形式输出至控制台,输出成功则返回该整形数int ungetch(int);// 将一个整型数以ASCII码形式输
函数名: harderr 功 能: 建立一个硬件错误处理程序 用 法: void harderr(int (*fptr)()); 程序例: /*This program will trap disk errors and prompt the user for action. Try running it with no disk in drive A: to invoke its functions.*/ #include <stdio.h> #include <conio.h>
| 版权声明:本文为博主原创文章,未经博主允许不得转载. graphics.h是TC里面的图形库,如果要用的话应该用TC来编译.分为:像素函数.直线和线型函数.多边形函数.填充函数等.然而在我们使用的编译器vc6.0和visual studio 2013编译器中是不支持graphics.h图形库的,当然vc6.0和visual studio 2013编译器也自带了微软的图形库API(也叫Windows API,它的函数基本上包含在了windows.h的头文件中),那么如果我们要在vc6.0和