-
Notifications
You must be signed in to change notification settings - Fork 2
/
User.h
44 lines (43 loc) · 890 Bytes
/
User.h
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
#pragma once
#include "News.h"
#include "Admin.h"
#include<iostream>
#include<fstream>
#include<string>
#include<vector>
#include <unordered_map>
using namespace std;
struct spamDetails {
string use;
string title;
};
struct Details;
class User
{
vector<string> spamNews;
int choice;
float rate;
int count = 0;
unordered_map<string, vector<string> > comments;
unordered_map<int, vector<Details>> specificNews;
unordered_map<string, vector<string>> msam;
public:
string tit;
string newsnumber;
string user;
string cata;
void login();
void registration();
void intialization();
void forget_pass();
bool checkRateAll(string);
void OptionRateAll();
void RateAll();
void Display_Latest_News();
void Show();
void Spam();
void OptionSpam();
void DisplayComment();
void op();
unordered_map<string, vector<string>> pam();
};