1 #include "iostream"
2 #include "string.h"
3 #include "iostream"
4 #include "fstream"
5 #include
6 #include
7
8 using namespace std;
9 typedef struct url_n_time
10 {
11 string url;
12 int times;
13 bool operator <(const url_n_time& i1)const
14 {
15 return times < i1.times;
16 }
17 }url_n_time;
18 /*
19 bool operator <(const url_n_time& i1, const url_n_time i2)
20 {
21 if(i1.times >= i2.times)
22 {
23 return true;
24 }
25 else
26 {
27 return false;
28 }
29 }*/
30 vector vec_url_n_time(0);
31
32 bool url_times_cmp(const url_n_time& url1, const url_n_time& url2)
33 {
34 if(url1.times >= url2.times)
35 {
36 return true;
37 }
38 else
39 {
40 return false;
41 }
42 }
43
2 #include "string.h"
3 #include "iostream"
4 #include "fstream"
5 #include
6 #include
7
8 using namespace std;
9 typedef struct url_n_time
10 {
11 string url;
12 int times;
13 bool operator <(const url_n_time& i1)const
14 {
15 return times < i1.times;
16 }
17 }url_n_time;
18 /*
19 bool operator <(const url_n_time& i1, const url_n_time i2)
20 {
21 if(i1.times >= i2.times)
22 {
23 return true;
24 }
25 else
26 {
27 return false;
28 }
29 }*/
30 vector
31
32 bool url_times_cmp(const url_n_time& url1, const url_n_time& url2)
33 {
34 if(url1.times >= url2.times)
35 {
36 return true;
37 }
38 else
39 {
40 return false;
41 }
42 }
43