Se supone que debería sonar una melodía al ejecutar el programa pero no es así, ¿qué debo hacer para que suene?
#include <windows.h> //For Beep & Sleep functions
#include <stdlib.h> //For System Pause
#include <iostream>
using namespace std;
int main()
{
Beep (330,100);Sleep(100);
Beep (330,100);Sleep(300);
Beep (330,100);Sleep(300);
Beep (262,100);Sleep(100);
Beep (330,100);Sleep(300);
Beep (392,100);Sleep(700);
Beep (196,100);Sleep(700);
Beep (262,300);Sleep(300);
Beep (196,300);Sleep(300);
Beep (164,300);Sleep(300);
Beep (220,300);Sleep(100);
Beep (246,100);Sleep(300);
Beep (233,200);
Beep (220,100);Sleep(300);
Beep (196,100);Sleep(150);
Beep (330,100);Sleep(150);
Beep (392,100);Sleep(150);
Beep (440,100);Sleep(300);
Beep (349,100);Sleep(100);
Beep (392,100);Sleep(300);
Beep (330,100);Sleep(300);
Beep (262,100);Sleep(100);
Beep (294,100);Sleep(100);
Beep (247,100);Sleep(500);
Beep (262,300);Sleep(300);
Beep (196,300);Sleep(300);
Beep (164,300);Sleep(300);
Beep (220,300);Sleep(100);
Beep (246,100);Sleep(300);
Beep (233,200);
Beep (220,100);Sleep(300);
Beep (196,100);Sleep(150);
Beep (330,100);Sleep(150);
Beep (392,100);Sleep(150);
Beep (440,100);Sleep(300);
Beep (349,100);Sleep(100);
Beep (392,100);Sleep(300);
Beep (330,100);Sleep(300);
Beep (262,100);Sleep(100);
Beep (294,100);Sleep(100);
Beep (247,100);Sleep(900);
Beep (392,100);Sleep(100);
Beep (370,100);Sleep(100);
Beep (349,100);Sleep(100);
Beep (311,100);Sleep(300);
Beep (330,100);Sleep(300);
Beep (207,100);Sleep(100);
Beep (220,100);Sleep(100);
Beep (262,100);Sleep(300);
Beep (220,100);Sleep(100);
Beep (262,100);Sleep(100);
Beep (294,100);Sleep(500);
Beep (392,100);Sleep(100);
Beep (370,100);Sleep(100);
Beep (349,100);Sleep(100);
Beep (311,100);Sleep(300);
Beep (330,100);Sleep(300);
Beep (523,100);Sleep(300);
Beep (523,100);Sleep(100);
Beep (523,100);Sleep(1100);
Beep (392,100);Sleep(100);
Beep (370,100);Sleep(100);
Beep (349,100);Sleep(100);
Beep (311,100);Sleep(300);
Beep (330,100);Sleep(300);
Beep (207,100);Sleep(100);
Beep (220,100);Sleep(100);
Beep (262,100);Sleep(300);
Beep (220,100);Sleep(100);
Beep (262,100);Sleep(100);
Beep (294,100);Sleep(500);
Beep (311,300);Sleep(300);
Beep (296,300);Sleep(300);
Beep (262,300);Sleep(1300);
Beep (262,100);Sleep(100);
Beep (262,100);Sleep(300);
Beep (262,100);Sleep(300);
Beep (262,100);Sleep(100);
Beep (294,100);Sleep(300);
Beep (330,200);Sleep(50);
Beep (262,200);Sleep(50);
Beep (220,200);Sleep(50);
Beep (196,100);Sleep(700);
Beep (262,100);Sleep(100);
Beep (262,100);Sleep(300);
Beep (262,100);Sleep(300);
Beep (262,100);Sleep(100);
Beep (294,100);Sleep(100);
Beep (330,100);Sleep(700);
Beep (440,100);Sleep(300);
Beep (392,100);Sleep(500);
Beep (262,100);Sleep(100);
Beep (262,100);Sleep(300);
Beep (262,100);Sleep(300);
Beep (262,100);Sleep(100);
Beep (294,100);Sleep(300);
Beep (330,200);Sleep(50);
Beep (262,200);Sleep(50);
Beep (220,200);Sleep(50);
Beep (196,100);Sleep(700);
/*Intro*/
Beep (330,100);Sleep(100);
Beep (330,100);Sleep(300);
Beep (330,100);Sleep(300);
Beep (262,100);Sleep(100);
Beep (330,100);Sleep(300);
Beep (392,100);Sleep(700);
Beep (196,100);Sleep(700);
Beep (196,100);Sleep(125);
Beep (262,100);Sleep(125);
Beep (330,100);Sleep(125);
Beep (392,100);Sleep(125);
Beep (523,100);Sleep(125);
Beep (660,100);Sleep(125);
Beep (784,100);Sleep(575);
Beep (660,100);Sleep(575);
Beep (207,100);Sleep(125);
Beep (262,100);Sleep(125);
Beep (311,100);Sleep(125);
Beep (415,100);Sleep(125);
Beep (523,100);Sleep(125);
Beep (622,100);Sleep(125);
Beep (830,100);Sleep(575);
Beep (622,100);Sleep(575);
Beep (233,100);Sleep(125);
Beep (294,100);Sleep(125);
Beep (349,100);Sleep(125);
Beep (466,100);Sleep(125);
Beep (587,100);Sleep(125);
Beep (698,100);Sleep(125);
Beep (932,100);Sleep(575);
Beep (932,100);Sleep(125);
Beep (932,100);Sleep(125);
Beep (932,100);Sleep(125);
Beep (1046,675);
system ("pause");
return 0;
}