-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
88 lines (83 loc) · 2.58 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#include<graphics.h>
#include<conio.h>
#include<iostream>
#include"stdlib.h"
#include"windows.h"
#include"mmsystem.h"
#include"string.h"
#include"stdio.h"
#include <time.h>
#include"math.h"
#include <string>
#pragma comment(lib,"winmm.lib")
using namespace std;
void playSound()
{
Sleep(1000);
PlaySound((".\\res\\铃儿响叮当.wav"), NULL, SND_FILENAME | SND_ASYNC);
}
int main()
{
system("Title ");
initgraph(1000, 590);
IMAGE img1;
loadimage(&img1, ".\\res\\boy.jpg");
putimage(0, 0, &img1);
IMAGE img2;
loadimage(&img2, ".\\res\\girl.jpg");
putimage(500, 0, &img2); Sleep(4000);
IMAGE img3;
loadimage(&img3, ".\\res\\black.jpg");
putimage(0, 0, &img3); Sleep(3000);
IMAGE img4;
loadimage(&img4, ".\\res\\full_black.jpg");
putimage(0, 0, &img4); Sleep(1500);
settextstyle(80, 0, "黑体");
setcolor(RGB(255, 255, 255));
outtextxy(360, 240, " 3 "); Sleep(1000);
outtextxy(360, 240, " 2 "); Sleep(1000);
outtextxy(360, 240, " 1 "); Sleep(1000);
playSound();
IMAGE img5;
loadimage(NULL, ".\\res\\LCX.jpg");
loadimage(&img5, ".\\res\\tree.jpg");
putimage(500, 0, &img5);
Sleep(2000);
setcolor(RGB(255, 34, 0));
settextstyle(30, 0, "黑体");
Sleep(1000);
outtextxy(200, 540, " 啊冲破大风雪,我们坐在雪橇上 "); Sleep(5000);
setcolor(RGB(8, 194, 150));
outtextxy(200, 540, " 快奔驰过田野,我们欢笑又歌唱 "); Sleep(5000);
IMAGE img6;
loadimage(&img6, ".\\res\\icecream.jpg");
putimage(500, 0, &img6);
setcolor(RGB(255, 34, 0));
outtextxy(200, 540, " 马儿铃声响叮当,令人精神多欢畅 "); Sleep(5000);
setcolor(RGB(8, 194, 150));
outtextxy(200, 540, " 我们今晚滑雪真快乐,把滑雪歌儿唱"); Sleep(5000);
IMAGE img7;
loadimage(&img7, ".\\res\\flower.jpg");
putimage(500, 0, &img7);
setcolor(RGB(38, 255, 0));
outtextxy(200, 540, " 叮叮当,叮叮当,铃儿响叮当 "); Sleep(5000);
setcolor(RGB(8, 194, 150));
outtextxy(200, 540, " 今晚滑雪多快乐,我们坐在雪橇上 "); Sleep(5000);
IMAGE img8;
loadimage(&img8, ".\\res\\apple.jpg");
putimage(500, 0, &img8);
setcolor(RGB(38, 255, 0));
outtextxy(200, 540, " 叮叮当,叮叮当,铃儿响叮当 "); Sleep(5000);
setcolor(RGB(8, 194, 150));
outtextxy(200, 540, " 今晚滑雪多快乐,我们坐在雪橇上 "); Sleep(5000);
IMAGE img9;
loadimage(&img9, ".\\res\\snowman.jpg");
putimage(500, 0, &img9);
setcolor(RGB(255, 0, 89));
outtextxy(200, 540, "李春晓, 圣诞快乐! 开开心心,平平安安!^_^"); Sleep(8000);
IMAGE img10;
loadimage(&img10, ".\\res\\pig.jpg");
putimage(0, 0, &img10);
Sleep(8000);
return 0;
}