dvidport.h
来自「c语言库函数!里面包含了所以c语言中的系统函数的实现及其详细说明和代码!请大家及」· C头文件 代码 · 共 43 行
H
43 行
/* +++Date last modified: 05-Jul-1997 */
/*
** DVIDPORT.H - Direct video portability functions for PC compilers
**
** For ease of use, makes everything look like Borland, but adds dvid_open()
** and dvid_close() for Symantec & Zortech
**
** public domain by Dave Knapp & Bob Stout
*/
#ifndef DVIDPORT__H
#define DVIDPORT__H
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#ifdef M_I86 /* Identifier for MSC, QC, Watcom, or SC/ZTC */
#ifndef __ZTC__
#include <graph.h>
#define dvid_open()
#define dvid_close()
#define cputs(s) _outtext((char _far *)(s))
#define gotoxy(col,row) _settextposition(row,col)
#else /* if SC/ZTC */
#include <disp.h>
void gotoxy(int, int);
#define dvid_open disp_open
#define dvid_close disp_close
#define cputs(s) disp_puts(s)
#define cprintf(s) disp_printf(s)
#endif /* if ZTC */
#else
#define dvid_open()
#define dvid_close()
#if defined(__POWERC)
#define gotoxy(col,row) poscurs(row,col)
#endif
#endif
#endif /* DVIDPORT__H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?