-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpiano.cpp
68 lines (67 loc) · 1.21 KB
/
piano.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
#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
int main(int argc,char **argv){
cout<<"Do ";
_beep(262,500);
cout<<"Re ";
_beep(293,500);
cout<<"Mi ";
_beep(330,500);
cout<<"Do ";
_beep(262,500);
cout<<"So ";
_beep(392,1000);
cout<<"Mi ";
_beep(330,500);
cout<<"Re ";
_beep(293,500);
cout<<"So ";
_beep(392,500);
cout<<"Re ";
_beep(293,500);
cout<<"Do ";
_beep(262,500);
cout<<"La ";
_beep(220,500);
cout<<"Mi ";
_beep(330,1000);
cout<<"Do ";
_beep(262,500);
cout<<"Si ";
_beep(247,750);
cout<<"Si ";
_beep(247,500);
cout<<"La ";
_beep(220,500);
cout<<"La ";
_beep(220,250);
cout<<"Si ";
_beep(247,500);
cout<<"Do ";
_beep(262,500);
cout<<"Re ";
_beep(293,500);
cout<<"So ";
_beep(196,500);
cout<<"Do ";
_beep(262,500);
cout<<"Re ";
_beep(293,500);
cout<<"Mi ";
_beep(330,500);
cout<<"Fa ";
_beep(349,500);
cout<<"Fa ";
_beep(349,350);
cout<<"Mi ";
_beep(330,500);
cout<<"Re ";
_beep(293,500);
cout<<"Do ";
_beep(262,500);
cout<<"Do ";
_beep(262,500);
return 0;
}