Documentos de Académico
Documentos de Profesional
Documentos de Cultura
#include <iostream>
#include <windows.h>
#include <conio.h>
#include <stdio.h>
/* run this program using the console pauser or add your own getch,
system("pause") or input loop */
using namespace std;
int main()
{
system("color F3");
printf("\n\n\n\n\n\t\tPROGRAMA QUE REPRODUCE MUSICA EN
PANTALLA\n\n\n\n\n\t");
getch();
system("color B8");
system("cls");
char soundfile[] = "C:\happy.wav" ;
char soundfile1[] = "C:\prueba.wav" ;
char soundfile2[] = "C:\dgt.wav" ;
char soundfile3[] = "C:\dj.wav" ;
cout<<PlaySound((LPCSTR)soundfile, NULL, SND_FILENAME | SND_ASYNC );
cout<<"\n\t\tBaila Jimmy baila!!!"<<endl;
system("color 9f");
getch();
system("cls");
cout<<PlaySound((LPCSTR)soundfile1, NULL, SND_FILENAME | SND_ASYNC );
cout<<"\n\t\tShocker, tu turno!!!"<<endl;
system("color f9");
getch();
system("cls");
cout<<PlaySound((LPCSTR)soundfile2, NULL, SND_FILENAME | SND_ASYNC );
cout<<"\n\t\tMi gato con botas... anda chido!!!"<<endl;
system("color 4f");
getch();
system("cls");
cout<<PlaySound((LPCSTR)soundfile3, NULL, SND_FILENAME | SND_ASYNC );
cout<<"\n\t\tFiesta!!!"<<endl;
system("color df");
getch();
printf("\n\n\n\n\n\t\tEso es to... Eso es to... Eso es todo Amigos!!!\n\n\n\n\n\t");
getch();
return 0;