wow
This commit is contained in:
parent
14647b72e2
commit
7f76e58e1e
10 changed files with 150 additions and 5 deletions
30
02/02_69p.c
Normal file
30
02/02_69p.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
|
||||
#define C 1046.502
|
||||
#define D 1108.731
|
||||
#define E 1318.510
|
||||
#define F 1396.913
|
||||
#define G 1567.982
|
||||
#define A 1760.000
|
||||
#define B 1975.533
|
||||
|
||||
int main() {
|
||||
int notes[] = {
|
||||
G, G, A, A, G, G, E, G, G, E, E, D,
|
||||
G, G, A, A, G, G, E, G, E, D, E, C
|
||||
};
|
||||
int noteDelays[] = {
|
||||
200, 200, 200, 200, 200, 200, 400, 200, 200, 200, 200, 500,
|
||||
200, 200, 200, 200, 200, 200, 400, 200, 200, 200, 200, 500
|
||||
};
|
||||
int i;
|
||||
|
||||
for (i = 0; i < (int)(sizeof(notes) / sizeof(notes[0])); i++) {
|
||||
Beep(notes[i], 500);
|
||||
Sleep(noteDelays[i]);
|
||||
}
|
||||
|
||||
system("pause");
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue