-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpessoa2.cpp
More file actions
48 lines (43 loc) · 839 Bytes
/
Copy pathpessoa2.cpp
File metadata and controls
48 lines (43 loc) · 839 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <iostream>
using namespace std;
#include <string>
class Pessoa{
private:
string nome, telefone;
int idade;
public:
Pessoa(){
idade = 0;
}
Pessoa(string n){
nome = n;
idade = 0;
}
Pessoa(string n, int i, string t){
nome = n;
idade = i;
telefone = t;
}
void setNome(string n){
nome = n;
}
void setIdade(int i){
idade = i;
}
void setTelefone(int t){
telefone = t;
}
string getNome(){
return nome;
}
int getIdade(){
return idade;
}
string getTelefone(){
return telefone;
}
};
int main(){
int N;
cin>> N;
}