Estoy haciendo un piano sencillito que deberia sonar con la campana del sistema en C
Código C:
Ver original#include <conio.h>
#include <windows.h>
main()
{
while(2<3);
{
printf("Para ver teclas pulsa 0");
if(note == '0'){
//do re mi fa sol la si do re mi fa sol
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);
}
//rebemol mibemol solbemol labemol sibemol rebemol mibemol solbemol
if(note == 'w'){
Beep(277,100);
}
if(note == 'e'){
Beep(311,100);
}
if(note == 't'){
Beep(370,100);
}
if(note == 'y'){
Beep(415,100);
}
if(note == 'u'){
Beep(466,100);
}
if(note == 'o'){
Beep(554,100);
}
if(note == 'p'){
Beep(622,100);
}
if(note == '+'){
Beep(740,100);
}
}
}
Ese es el codigo. Al compilarlo con el Dev-C++ 4.9.9.1 me da los siguientes errores
Cita: 6 C:\Dev-Cpp\Test.c [Warning] return type defaults to `int'
Cita: C:\Dev-Cpp\Test.c In function `main':
Cita: 9 C:\Dev-Cpp\Test.c [Warning] implicit declaration of function `printf'
Cita: 2 C:\Dev-Cpp\Test.c:101 [Warning] no newline at end of file
Cita: 101 C:\Dev-Cpp\Test.c parse error at end of input
Cita: C:\Dev-Cpp\Makefile.win [Build Error] [Test.o] Error 1
¿Por favor, me podrian decir que debo modificar?