-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPerson.cpp
More file actions
61 lines (54 loc) · 1.32 KB
/
Person.cpp
File metadata and controls
61 lines (54 loc) · 1.32 KB
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
#include<iostream>
#include<ctime>
#include"Person.hpp"
using namespace std;
void Person::setName(string temp)
{
name=temp;
}
string Person::getName()
{
return name;
}
/*
void Person::setPersonality()
{
sor choice;
cout<<"SET or RANDOM phobia?"<<endl;
//cin>>choice;
setPhobia(choice);
}
void Person::setPhobia(sor choice)
{
if(true) {
cout<<"LOL"<<endl;
} else(true) {
srand(time(NULL));
int random;
random =1;// rand()%;
if(random == 1){
mentalill += "PHOBIA:";
random = rand()%8;
if(random == 0){
mentalill += " Germophobia";
} else if(random == 1){
mentalill += " Claustrophobia";
} else if(random == 2){
mentalill += " Hylophobia";
} else if(random == 3){
mentalill += " Hydrophobia";
} else if(random == 4){
mentalill += " Homophobia";
} else if(random == 5){
mentalill += " Achluophobia";
} else if(random == 6){
mentalill += " Autophobia";
} else if(random == 7){
mentalill += " Acrophobia";
} else if(random == 8){
cout<<"lol"<<endl;
}
}
}
}
*/