-
Notifications
You must be signed in to change notification settings - Fork 0
/
my first and last.c
50 lines (45 loc) · 1021 Bytes
/
my first and last.c
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
#pragma comment(lib,"winmm.lib")
#include<stdio.h>
#include<windows.h>
#include<conio.h>
#include <mmsystem.h>
void gotoxy_m(int x, int y);
void note_gkatn(int z);
void note_count(int x);
void finsh(int z);
void color(unsigned short color);
extern int note[10][100], tutorialm[100][100];
extern int* note_wnth[10];
extern int count_note, perfect_score;
void my_first_and_last()
{
system("cls");
int c;
c = _getch();
PlaySound(L"¹«À½.wav", 0, SND_FILENAME | SND_ASYNC);
for (int i = 0; i < 94; i++)
{
for (int j = 0; j < 48; j++)
{
color(15);
if (i == 35 || i == 56)
{
gotoxy_m(i, j);
printf("|");
}
if (i > 35 && i < 56 && j == 43)
{
gotoxy_m(i, j);
color(4);
printf("¦¡");
}
}
}
note_count(1);
perfect_score = 1000000 / count_note;
note_gkatn(1);
finsh(1);
PlaySound(L"¹«À½.wav", 0, SND_FILENAME | SND_ASYNC);
PlaySound(L"Fingerprint_-_Mini_Vandals.wav", 0, SND_FILENAME | SND_ASYNC | SND_LOOP);
return;
}