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

Another question on Engineering

question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
question
Engineering, 04.07.2019 18:20
For a gate width of 2 m into the paper, determine the force required to hold the gate abc at its location.
Answers: 1
question
Engineering, 04.07.2019 19:20
Determine the time of the day and month of the year at which the peak sensible cooling load occurs for a top floor, north-eastern corner room of an office building in durban for the following conditions: floor area: 8 x 8 x 3 m east and north walls: 115 mm face brick (outside), 20 mm air space, 115 mm ordinary brick (inside) with 15 mm plaster roof construction: suspended plasterboard ceiling, 450 mm air space, 150 mm concrete, 75mm screed, waterproofing no heat transfer across other surfaces window area 3x 1,5 m high in north wall only. ordinary glass with venetian blinds. lights and occupants : from 07: 00 to 18: 00 average light density: 25 w/m2 number of occupants : 5 seated, light office work room temperature 24°c
Answers: 3
You know the right answer?
Write the implementation (.cpp file) of the player class from the previous exercise. again, the clas...
Questions
Questions on the website: 13722367