#include<stdio.h>
#include<stdlib.h>
#include<mmsystem.h>
#include<windows.h>
#pragma comment(lib,"winmm.lib")
//首頁
void firstpage()
{
printf("歡迎進入貪吃蛇\n");
printf("w a s d 控制貪吃蛇移動方向\n");
printf("空格鍵進入游戲\n");
}
//音樂
void myplaysound()
{
PlaySound("D:\\鄧紫棋 - 喜歡你",NULL,SND_FILENAME|SND_ASYNC);
}
int main()
{
firstpage();
myplaysound();
system("pause");
return 0;
}
這個打出來為什么提示我錯誤啊
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/266058.html
標籤:C語言
上一篇:求大佬給改改
下一篇:c++新人求助
