when i compile the code shown below i get the following errors:
warning w8065 bomber.c 20:call to function 'sound' with no prototype in function dropbomb
warning w8065 bomber.c 21:call to function 'delay' with no prototype in function dropbomb
warning w8065 bomber.c 23:call to function 'nosound' with no prototype in function dropbomb
lnk errors:
error:unresolved external '_sound' referenced from c:\bin\bomber.obj
error:unresolved external '_delay' referenced from c:\bin\bomber.obj
error:unresolved external '_nosound' referenced from c:\bin\bomber.obj
the code i used:
#include <stdio.h>
#include <conio.h>
#include <dos.h>
void dropBomb(void);
void main()
{
printf("press any key to drop bomb:");
getch();
dropBomb();
printf("\nyikes!\n");
}
void dropBomb()
{
int x;
for(x=880 ; x>440 ; x-=10)
{
sound(x);
delay(100);
}
nosound();
}
what could be wrong?