4-2.c
来自「C语言程序设计实训_源代码」· C语言 代码 · 共 17 行
C
17 行
/* 4-2.c 使用<<UCDOS3.1>>汉字系统的字库<hzk16>*/
#include <graphics.h>
#include <conio.h>
#include <stdio.h>
#include <string.h>
int hz_printxy(char *hz,int x,int y,int tcolor,int bcolor);
int getbit(unsigned char c,int n);
int hzprintxy(char *hz,int x,int y,int tcolor,int bcolor);
void main()
{
int gdriver = DETECT, gmode;
initgraph(&gdriver, &gmode, "");
hz_printxy("啊",22,33,11,0);
hz_printxy("\xb0\xa1",122,33,14, 9);
hz_printxy("。",222,33,14,0);
hz_printxy("\xa1\xa3",322,33,14, 9);
hzprintxy("
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?