1.传奇动态小界面
素材:链接:https://pan.baidu.com/s/1qLAuEH4mO4sWYj50e6ppyw 密码:fria
#include<stdio.h>
#include<graphics.h>
#include<conio.h>
//#include<MMSystem.h>
#include <mmsystem.h>
#pragma comment(lib,"winmm.lib")
IMAGE img[24];
void loadResource()
{
char filename[20] = "";
for(int i = 0; i<24 ; i++)
{
if(i < 10)
{
sprintf(filename,"00%d.bmp",i);
}
else
{
sprintf(filename,"0%d.bmp",i);
}
loadimage(&img[i],filename);
}
}
void putimageMyWindows()
{
initgraph(570,650);
int i = 0;
mciSendString("open 传奇霸业.mp3 alias song",0,0,0);
mciSendString("play song repeat",0,0,0);
while(!_kbhit() )//1
{
putimage(0,0,&img[i]);
Sleep(50);
i++;
if(i == 24)
i = 0;
}
closegraph();
}
int main()
{
loadResource();
putimageMyWindows();
return