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
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
question
Engineering, 04.07.2019 18:10
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
question
Engineering, 04.07.2019 18:10
Awall of 0.5m thickness is to be constructed from a material which has average thermal conductivity of 1.4 w/mk. the wall is to be insulated with a material having an average thermal conductivity of 0.35 w/mk so that heat loss per square meter shall not exceed 1450 w. assume inner wall surface temperature of 1200°c and outer surface temperature of the insulation to be 15°c. calculate the thickness of insulation required.
Answers: 3
You know the right answer?
Write the implementation (.cpp file) of the player class from the previous exercise. again, the clas...
Questions
question
English, 01.12.2021 01:30
Questions on the website: 13722367