-
Notifications
You must be signed in to change notification settings - Fork 1
/
FollowInfo.h
45 lines (33 loc) · 1013 Bytes
/
FollowInfo.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
45
#ifndef FOLLOWINFO_H
#define FOLLOWINFO_H
#include <string>
#include <fstream>
using std::string;
using std::ifstream;
using std::ofstream;
using std::fstream;
struct ConcernInfo
{
string un;
string concern;
string KeyWord() const;
};
struct FansInfo
{
string un;
string fans;
string KeyWord() const;
};
bool operator== (const ConcernInfo &c1, const ConcernInfo &c2);
bool operator< (const ConcernInfo &c1, const ConcernInfo &c2);
ifstream& operator>> (ifstream &ifs, ConcernInfo &c);
ofstream& operator<< (ofstream &ofs, const ConcernInfo &c);
fstream& operator>> (fstream &ifs, ConcernInfo &c);
fstream& operator<< (fstream &ofs, const ConcernInfo &c);
bool operator== (const FansInfo &f1, const FansInfo &f2);
bool operator< (const FansInfo &f1, const FansInfo &f2);
ifstream& operator>> (ifstream &ifs, FansInfo &f);
ofstream& operator<< (ofstream &ofs, const FansInfo &f);
fstream& operator>> (fstream &ifs, FansInfo &f);
fstream& operator<< (fstream &ofs, const FansInfo &f);
#endif