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, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
question
Engineering, 04.07.2019 18:20
For each of the following process: a) sketch the p-v diagram, b)sketch t-s diagram, c) sketch t-v diagram, d) sketch the boundary work on one of the diagrams (a, b or c) and e) sketch the reversible heat transfer on one of the diagrams (a, b or c): 1- isobaric process from compressed liquid to superheated vapor 2- isothermal process from compressed liquid to superheated vapor 3- isentropic process from compressed liquid to superheated vapor
Answers: 3
question
Engineering, 04.07.2019 19:20
Air at a pressure of 1atm and a temperature of 40 c is in parallel flow over the top surface of a flat plate that is heated to a uniform temperature of 120 c. the plate has a length of 0.40m (in the flow direction) and a width of 0.15m. the reynolds number based on the plate length is 50, 000. what is the rate of heat transfer from the plate to the air? if the free stream velocity of the air is doubled and the pressure is increased to 10 atm what is the rate of heat transfer?
Answers: 2
question
Engineering, 06.07.2019 02:30
Plot schematically the tensile stress versus strain curves for a typical thermoplastic material at a temperature below its glass transition temperature (tg and at a temperature above its tg, respectively. do the same for a typical thermosetting material. list in a table any differences or similarities between the two materials at t> tg and t < tg, respectively, and relate them to the structures of the two types of polymers
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: 13722360