1
2024-09-21 14:33:54
发布于:江苏
#include<iostream>
using namespace std;
int main(){
while(true){//无限循环
cout<<"欢迎来到小马音乐盒"<<endl;
cout<<"请输入数字选择歌曲"<<endl;
cout<<"1"<<endl;
cout<<"2"<<endl;
cout<<"3"<<endl;
cout<<"4"<<endl;
int a;
cin>>a;
if(a==1) system("致爱丽丝.mp3");
if(a==2) system("欢乐颂.mp3");
if(a==3) system("夜曲.mp3");
if(a==4) system("命运交响曲.mp3");
}
return 0;
}
这里空空如也
有帮助,赞一个