-
Notifications
You must be signed in to change notification settings - Fork 0
/
util.h
34 lines (21 loc) · 846 Bytes
/
util.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
#ifndef UTIL_H
#define UTIL_H
#include <QString>
#include <QVector>
#include <QStringList>
struct Participant
{
QString firstName;
QString lastName;
QString grade;
QString email;
Participant(QString lastName, QString firstName, QString grade): firstName(firstName), lastName(lastName), grade(grade){}
Participant(QString lastName, QString firstName): firstName(firstName), lastName(lastName){}
Participant(QString lastName, QString firstName, QString grade, QString email): firstName(firstName), lastName(lastName), grade(grade), email(email){}
bool operator<=(Participant b)
{
return qMakePair(qMakePair(lastName, firstName), qMakePair(email, grade)) <= qMakePair(qMakePair(b.lastName, b.firstName), qMakePair(b.email, b.grade));
}
};
QString remove_yo(QString text);
#endif // UTIL_H