Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <conio.h>
- #include <windows.h>
- #include "pch.h"
- using namespace std;
- int main(int argc, char *argv[])
- {
- while (true) {
- cout << "Input note: ";
- char note = getch();
- if (note == 'a') {
- Beep(261, 100);
- }
- if (note == 's') {
- Beep(293, 100);
- }
- if (note == 'd') {
- Beep(329, 100);
- }
- if (note == 'f') {
- Beep(349, 100);
- }
- if (note == 'g') {
- Beep(392, 100);
- }
- if (note == 'h') {
- Beep(440, 100);
- }
- if (note == 'j') {
- Beep(493, 100);
- }
- if (note == 'k') {
- Beep(523, 100);
- }
- if (note == 'l') {
- Beep(587, 100);
- }
- if (note == ';') {
- Beep(659, 100);
- }
- if (note == '\'') {
- Beep(698, 100);
- }
- if (note == '\\') {
- Beep(784, 100);
- }
- if (note == 'z') {
- Beep(277, 100);
- }
- if (note == 'x') {
- Beep(311, 100);
- }
- if (note == 'c') {
- Beep(370, 100);
- }
- if (note == 'v') {
- Beep(415, 100);
- }
- if (note == 'b') {
- Beep(466, 100);
- }
- if (note == 'n') {
- Beep(554, 100);
- }
- if (note == 'm') {
- Beep(622, 100);
- }
- if (note == ',') {
- Beep(740, 100);
- }
- system("c ls");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement