FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SimpleListProgram/player.cpp at master · lmorale4/SimpleListProgram · GitHub
lmorale4
/
SimpleListProgram
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SimpleListProgram
/
player.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (41 loc) · 1021 Bytes
Breadcrumbs
SimpleListProgram
/
player.cpp
Copy path
File metadata and controls
58 lines (41 loc) · 1021 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
include
"
player.h
"
TennisPlayer::TennisPlayer
(){
firstName =
"
"
;
lastName =
"
"
;
rank =
0
;
points =
0
;
country =
"
"
;
}
TennisPlayer::TennisPlayer
(string
fName
, string lName,
int
ranking,
int
totPoints, string initCountry){
firstName =
fName
;
lastName = lName;
rank = ranking;
points = totPoints;
country = initCountry;
}
string
TennisPlayer::getFirstName
()
const
{
return
firstName;
}
string
TennisPlayer::getLastName
()
const
{
return
lastName;
}
int
TennisPlayer::getRank
()
const
{
return
rank;
}
int
TennisPlayer::getPoints
()
const
{
return
points;
}
string
TennisPlayer::getCountry
()
const
{
return
country;
}
void
TennisPlayer::setRank
(
int
ranking){
rank = ranking;
}
void
TennisPlayer::setPoints
(
int
totPoints){
points = totPoints;
}
ostream&
operator
<< (ostream & out,
const
TennisPlayer & t){
out << t.
lastName
<<
"
,
"
<< t.
firstName
<< endl <<
"
Country:
"
<< t.
country
<< endl;
out <<
"
Ranking:
"
<< t.
rank
<< endl <<
"
Total Points:
"
<< t.
points
<< endl ;
return
out;
}
Back
|
FazBrowse Home
|
New Git URL