blob: 5f15c7072eeaf3399acc2187f817e265508ed592 (
plain)
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
|
/*
* File: Generico.cpp
* Author: mitsuo
*
* Created on 02 December 2022, 12:35
*/
#include <iostream>
#include <iomanip>
#include "Generico.h"
#include "aux.h"
using namespace std;
Generico::Generico() {
this->pais = new char [MAXLEN];
}
Generico::Generico(const Generico& orig) {
}
Generico::~Generico() {
delete [] this->pais;
}
int Generico::lee(std::istream &input) {
this->Medicamento::lee(input);
input.getline(this->pais, MAXLEN, '\n');
return !input.eof();
}
void Generico::imprime(std::ostream &output) {
this->Medicamento::imprime(output);
output << WL(40) << this->pais;
output << '\n';
}
|