win-tc怎么放入背景

来源:百度知道 编辑:UC知道 时间:2024/05/21 12:06:40
我用Win-TC做五子棋,请问怎么放入BMP的背景图片啊

能不能给一段就放入背景的有一定注释的实例代码

谢谢

一直更换背景的TC图形程序 (WIN-TC下通过)
#include "stdio.h"
#include "conio.h"
#include"graphics.h"

main()
{
int i;
int graphdriver=VGA,graphmode=VGAHI;
registerbgidriver(EGAVGA_driver);
initgraph(&graphdriver,&graphmode,"");
for(i=0;i<=15;i++)
{
setbkcolor(i);
getch();
}
closegraph();
}