-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
47 lines (39 loc) · 1.18 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "mainwindow.h"
#include <QApplication>
#include <map>
#include <string.h>
#include <iostream>
#include <QMap>
#include <algorithm>
#include <iostream>
#include <QDebug>
#include <QSound>
#include <QMediaPlayer>
#include <QMediaPlaylist>
using namespace std;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
/*map<string,int> maps;
maps["up"]=1;
string c="up";
//bool equal=(c=="up");
//bool notfound=(maps.find(c)==maps.end());
//cout<<equal<<endl;
vector<string> ret{"up","down","left","right"};
ret.erase(std::remove(
ret.begin(),
ret.end(),
"right"),
ret.end());
for (int i=0;i<ret.size();i++) cout<<ret[i]<<endl;
return 0;*/
//QSound::play(":/music/music/moon_light.wav");
//QMediaPlayer *music = new QMediaPlayer();//初始化音乐
//QMediaPlaylist *playlist = new QMediaPlaylist();//初始化播放列表
//playlist->setPlaybackMode(QMediaPlaylist::Loop);//设置播放模式(顺序播放,单曲循环,随机播放等)
return 0;
}