c中的outtextxy函数
2021-07-08 05:36:56
深夜i
--
--
c
中
的
o
u
t
t
e
x
t
x
y
函
数
outtextxy 函数在屏幕上的指定点(x,y)显示文本或字符串。
声明: void outtextxy(int x, int y, char *string);x, y 是点的坐标,第三个参数包含要显示的字符串的地址。
outtextxy 的 C 编程代码
#include<graphics.h>
#include<conio.h>
main()
{
int gd = DETECT, gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
outtextxy(100, 100, "Outtextxy function");
getch();
closegraph();
return 0;
}
上一篇:
idea打包java可执行jar包
下一篇:
c中的切片函数
评论区