-
Notifications
You must be signed in to change notification settings - Fork 0
/
Usuario.h
62 lines (58 loc) · 1.66 KB
/
Usuario.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* Copyright (C) Kevin J. Estevez (kenystev) and Luis C. Isaula (lisaula)
*
* GNU GENERAL PUBLIC LICENSE Version 2
* The licenses for most software are designed to take away your
* freedom to share and change it. By contrast, the GNU General Public
* License is intended to guarantee your freedom to share and change free
* software--to make sure the software is free for all its users. This
* General Public License applies to most of the Free Software
* Foundation's software and to any other program whose authors commit to
* using it.
*/
#ifndef USUARIO_H
#define USUARIO_H
#include<fstream>
#include<iostream>
#include"Font.h"
using namespace std;
class Usuario
{
public:
int pista1,pista2,pista3,pista4,promedio;
Font *font;
// Insertion operator
// friend std::ostream& operator<<(std::ostream& os, const Usuario& s)
// {
// // write out individual members of s with an end of line between each one
// os << s.nombre << '\t';
// os << s.pista1<<'\t';
// os << s.pista2<<'\t';
// os << s.pista3<<'\t';
// os << s.pista4<<'\t';
// os << s.promedio<<'\t';
// delete &s;
// return os;
// }
//
// Extraction operator
// friend std::istream& operator>>(std::istream& is, Usuario& s)
// {
// // read in individual members of s
// is >> s.nombre >> s.pista1>> s.pista2>> s.pista3>> s.pista4;
// return is;
// }
string nombre;
Usuario(string name);
Usuario(string name, int p1,int p2,int p3,int p4,int pro);
Usuario();
void imprimir();
void print(int c);
int average();
int getAverage();
void setAverage();
virtual ~Usuario();
protected:
private:
};
#endif // USUARIO_H