-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStudenti.h
executable file
·36 lines (27 loc) · 979 Bytes
/
Studenti.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
#ifndef STUDENTI_H
#define STUDENTI_H
#include <iostream>
#include <string>
using namespace std;
class Studenti
{
string matricola, cognome, nome, citta;
float voti;
public:
//COSTRUTTORI
Studenti();
Studenti(string _matricola, string _cognome, string _nome, string _citta, float _voti);
//Funzioni 'get'
string getMatricola() const;
string getCognome() const;
string getNome() const;
string getCitta() const;
float getVoti() const;
bool operator > (const Studenti&)const;
bool operator == (const Studenti&)const;
bool operator != (const Studenti&)const;
bool operator < (const Studenti&)const;
//Dichiarazione dell'Overloading output
friend ostream& operator << (ostream& out, const Studenti& st);
};
#endif //Studenti.h