Home > Back-end >  C language play audio error
C language play audio error

Time:03-05

# include
# include
# include
# include
# pragma comment (lib, "winmm. Lib")
//page
Void firstpage ()
{
Printf (" welcome to snake \ n ");
Printf (" w a s d control snake move \ n ");
Printf (" the blank space key entered the game \ n ");
}
//music
Void myplaysound ()
{
PlaySound (" D: \ \ Deng Zi chess - like you ", NULL, SND_FILENAME | SND_ASYNC);
}

Int main ()
{
Firstpage ();
Myplaysound ();
system("pause");
return 0;
}
This play out why hint I wrong
  • Related