Engineering
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

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, niyawilliams23
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
image
Engineering, 04.07.2019 18:10, bunnles
During a steady flow process, the change of energy with respect to time is zero. a)- true b)- false
Answers: 2
image
Engineering, 04.07.2019 18:10, 0436500
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
image
Engineering, 04.07.2019 18:20, 3076850
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i. e., a violation of one statement leads to the violatio the other statement)
Answers: 2
Do you know the correct answer?
Write the implementation (.cpp file) of the player class from the previous exercise. again, the clas...

Questions in other subjects:

Konu
Mathematics, 14.02.2020 05:24