subject
Engineering, 14.11.2019 06:31 naomicervero

Write the implementation (.cpp file) of the player class from the previous exercise. again, the class contains:
a data member name of type string .
a data member score of type int .
a member function called setname that accepts a parameter and assigns it to name . the function returns no value.
a member function called setscore that accepts a parameter and assigns it to score . the function returns no value.
a member function called getname that accepts no parameters and returns the value of name .
a member function called getscore that accepts no parameters and returns the value of score .
my code is
#include
8 #include
9 using namespace std;
10 #include "player. h "
11
12 void player: : setname(string name)
13 {
14 }
15 void player: : setscore(int score)
16 {
17 }
18 string player: : getname()
19 {
20 return name;
21 }
22 int player: : getscore()
23 {
24
25 return score;
26 }
and it keeps saying player. h is being do i fix

ansver
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 16:10, Arealbot
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
image
Engineering, 04.07.2019 18:10, ahmedeldyame
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
image
Engineering, 04.07.2019 18:10, Fahaddie
The thermal expansion or contraction of a given metal is a function of the f a)-density b)-initial temperature c)- temperature difference d)- linear coefficient of thermal expansion e)- final temperature f)- original length
Answers: 2
image
Engineering, 04.07.2019 18:10, ayoismeisjjjjuan
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
You know the right answer?
Write the implementation (.cpp file) of the player class from the previous exercise. again, the clas...

Questions in other subjects:

Konu
Mathematics, 09.09.2020 23:01
Konu
English, 09.09.2020 23:01
Konu
Mathematics, 09.09.2020 23:01
Konu
Mathematics, 09.09.2020 23:01
Konu
Mathematics, 09.09.2020 23:01
Konu
Mathematics, 09.09.2020 23:01
Konu
Mathematics, 09.09.2020 23:01
Konu
English, 09.09.2020 23:01
Konu
Social Studies, 09.09.2020 23:01
Konu
History, 09.09.2020 23:01