-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPagos.h
More file actions
29 lines (28 loc) · 785 Bytes
/
Copy pathPagos.h
File metadata and controls
29 lines (28 loc) · 785 Bytes
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
#pragma once
#include <iostream>
#include <string>
#include "Vector.h"
using namespace std;
class Pagos
{
private:
int id;
int importe;
string nombrepago;
string informacion;
public:
Pagos(int opcion = 0, string nombrepago = "", string informacion = "", int importe = 0) : id(opcion),nombrepago(nombrepago),informacion(informacion), importe(importe){}
int getImporte() { return importe; }
void setImporte(int aux) { importe = aux; }
int getId() { return id; }
void setId(int aux) { id = aux; }
string NombrePago() { return nombrepago; }
void setNombrePago(string aux) { nombrepago = aux; }
string toString()
{
string tmp = "";
if (id == 0)return tmp;
else tmp = nombrepago + " --> S/." + to_string(importe) + "\n- Detalle: " + informacion+"\n";
return tmp;
}
};