-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
34 lines (33 loc) · 932 Bytes
/
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
#include "homepage.h"
#include "login.h"
#include"QVector"
#include <QApplication>
#include"QMessageBox"
#include"newsmodel.h"
#include"newsbasedon.h"
#include"news.h"
using namespace std;
vector<User> Adminx::users;
vector<NewsModel> Adminx::news;
map<int,vector<string>>News::favNews;
map<pair<int,string>,int>User::Rates;
int Login::UserID;
int Newsbasedon :: currentNew;
string Adminx::NewCat;
vector<bool> Newsbasedon::checked={false,false,false,false};
vector<bool> Adminx::checkedAdmin={false,false,false,false};
vector<bool> Adminx::backbuttons={false,false,false,false};
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Login w;
w.show();
Adminx*r=new Adminx();
r->ReadFromFiles();
qDebug() << Adminx::news.size() << r->newsSize;
for(auto it:User::Rates){
qDebug()<<it.first.second<<it.second;
}
return a.exec();
return 0;
}